comp.lang.ada
 help / color / mirror / Atom feed
From: xorque <xorquewasp@googlemail.com>
Subject: GCC 4.4.0 Postcondition oddity.
Date: Sat, 4 Jul 2009 05:27:35 -0700 (PDT)
Date: 2009-07-04T05:27:35-07:00	[thread overview]
Message-ID: <3a52a180-2565-4311-bc4d-dc28194a1150@l31g2000yqb.googlegroups.com> (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?



             reply	other threads:[~2009-07-04 12:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-04 12:27 xorque [this message]
2009-07-06 12:15 ` GCC 4.4.0 Postcondition oddity 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
replies disabled

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