From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,WEIRD_PORT autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,e720bb94c5e4e582 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!212.27.60.64.MISMATCH!cleanfeed3-b.proxad.net!nnrp3-2.free.fr!not-for-mail From: Samuel Tardieu Newsgroups: comp.lang.ada Subject: Re: GCC 4.4.0 Postcondition oddity. References: <3a52a180-2565-4311-bc4d-dc28194a1150@l31g2000yqb.googlegroups.com> <145fd6a9-399d-4651-8d09-edfb1d584e8d@d4g2000yqa.googlegroups.com> <4a51f094$0$31863$9b4e6d93@newsspool3.arcor-online.net> <7d651e73-09f9-49ed-a665-b5943e2c41e8@h2g2000yqg.googlegroups.com> Date: Mon, 06 Jul 2009 19:15:23 +0200 Message-ID: <87tz1pohqs.fsf@willow.rfc1149.net> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) Cancel-Lock: sha1:3Wdn85aaItjWGiQpMfuUTV0QDPY= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Leafnode-NNTP-Posting-Host: 2001:6f8:37a:2::2 Organization: Guest of ProXad - France NNTP-Posting-Date: 06 Jul 2009 19:20:01 MEST NNTP-Posting-Host: 91.121.19.179 X-Trace: 1246900801 news-1.free.fr 2458 91.121.19.179:39708 X-Complaints-To: abuse@proxad.net Xref: g2news2.google.com comp.lang.ada:6862 Date: 2009-07-06T19:20:01+02:00 List-Id: >>>>> "xorque" == xorque writes: xorque> Looks like I'll be filing a bug report... Out of curiosity, what does the output of "gcc -gnatadg" look like? Here, it is: (with a recent FSF GCC) % gcc -c -gnatadg p.adb with system.system__assertions; package body p is procedure p__x (a : out natural) is procedure p__x___postconditions is begin if not (a >= 10) then $system__assertions__raise_assert_failure ( "Postcondition failed at p.ads:4"); end if; return; end p__x___postconditions; begin a := 20; p__x___postconditions; return; end p__x; begin null; end p;