comp.lang.ada
 help / color / mirror / Atom feed
* GCC 4.4.0 Postcondition oddity.
@ 2009-07-04 12:27 xorque
  2009-07-06 12:15 ` xorque
  0 siblings, 1 reply; 7+ messages in thread
From: xorque @ 2009-07-04 12:27 UTC (permalink / raw)


Hello.

See the following:

package P is

  procedure X (A : out Natural);
  pragma Postcondition (A >= 10);

end P;

package body P is

  procedure X (A : out Natural) is
  begin
    A := 20;
  end X;

end P;

$ gcc44 -gnatwadleG -gnatVa -gnato -gnata -gnatW8 -gnatiw -
gnaty2aAbdefhiklnprStu -c p.adb
p.ads:4:25: warning: "A" may be referenced before it has a value

Anyone else seeing this (strange) warning?



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-07-06 21:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-04 12:27 GCC 4.4.0 Postcondition oddity xorque
2009-07-06 12:15 ` xorque
2009-07-06 12:39   ` Georg Bauhaus
2009-07-06 13:45     ` xorque
2009-07-06 15:46       ` Tero Koskinen
2009-07-06 17:15       ` Samuel Tardieu
2009-07-06 21:25         ` xorque

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox