From: Jerry <lanceboyle@qwest.net>
Subject: GNAT quirk
Date: Fri, 03 Aug 2007 05:23:26 -0700
Date: 2007-08-03T05:23:26-07:00 [thread overview]
Message-ID: <1186143806.109608.153890@m37g2000prh.googlegroups.com> (raw)
procedure bad is
a : Long_Float := 3.0;
begin
for i in 1 .. Integer(Long_Float'Truncation(a)) loop
null;
end loop;
end bad;
bad.adb:4:37: unimplemented attribute
gnatmake: "bad.adb" compilation error
procedure good is
begin
for i in 1 .. Integer(Long_Float'Truncation(2.0)) loop
null;
end loop;
end good;
Compiles OK.
procedure gooder is
a : Long_Float := 2.0;
idum : Integer;
begin
idum := Integer(Long_Float'Truncation(a));
for i in 1 .. idum loop
null;
end loop;
end gooder;
Compiles OK.
Jerry
next reply other threads:[~2007-08-03 12:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-03 12:23 Jerry [this message]
2007-08-03 20:05 ` GNAT quirk Ludovic Brenta
2007-08-03 21:25 ` Jerry
2007-08-03 23:27 ` Compiles OK? " anon
2007-08-11 2:36 ` Nasser Abbasi
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox