From: gautier_niouzes@hotmail.com
Subject: Re: Question about sets and expression
Date: Tue, 9 May 2017 02:28:42 -0700 (PDT)
Date: 2017-05-09T02:28:42-07:00 [thread overview]
Message-ID: <e79e8b09-9ac1-4f48-878a-dcf926642684@googlegroups.com> (raw)
In-Reply-To: <f6b949c7-7cd8-4d17-914f-0569152e0a20@googlegroups.com>
No crash with GNAP GPL 2016 for Windows (gcc version 4.9.4 20160426 (for GNAT GPL 2016 20160515)).
When elaborating a bit:
...
begin
Put_Line(" ** A: ");
c1 := (if not os.is_empty then os.first_element else d);
Put_Line(" ** B: ");
c2 := (if not os.is_empty then os.first_element else (id => Cnil, others => <>));
Put_Line(" ** C ");
if c1 = (id => C003,others => <>) then
Put_Line(" ** c1 OK ");
end if;
if c2 = (id => C003,others => <>) then
Put_Line(" ** c2 OK ");
end if;
end test1b;
I get
** A:
** B:
** C
** c1 OK
** c2 OK
The build command is:
gnatmake -gnato -fno-inline -fstack-check -gnatVa -gnatecdebug.pra test1b.adb
with debug.pra containing "pragma Initialize_Scalars;".
Same result with "gnatmake -f -gnatpn test1b.adb" and "gnatmake -f -gnatpn -O2 test1b.adb".
HTH
Gautier
________________________________________________
Your daily dose of buzzwords: http://cbsg.sf.net
next prev parent reply other threads:[~2017-05-09 9:28 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-08 15:53 Question about sets and expression reinert
2017-05-08 16:06 ` Robert Eachus
2017-05-08 17:03 ` reinert
2017-05-08 17:04 ` reinert
2017-05-08 19:00 ` Simon Wright
2017-05-09 3:58 ` reinert
2017-05-09 5:48 ` reinert
2017-05-09 6:23 ` Niklas Holsti
2017-05-09 6:29 ` G.B.
2017-05-09 7:14 ` reinert
2017-05-09 9:28 ` gautier_niouzes [this message]
2017-05-09 11:15 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox