null=Hoge'Access
でGNATが落ちる…
$ cat bugtest1.adb with Ada.Text_Io; procedure Bugtest1 is X:aliased Integer:=0; -- XA:access Integer:=X'Access; begin -- pragma Assert(null=XA);null; --OK -- pragma Assert(null=X'Access);null; --NG -- Ada.Text_Io.Put_Line(Boolean'Image(null=XA)); -- OK Ada.Text_Io.Put_Line(Boolean'Image(null=X'Access)); -- NG end Bugtest1; $ gnatmake bugtest1.adb gcc-4.4 -c bugtest1.adb +===========================GNAT BUG DETECTED==============================+ | 4.4.1 (i486-pc-linux-gnu) Assert_Failure atree.adb:884 | | Error detected at bugtest1.adb:9:43 | | Please submit a bug report; see http://gcc.gnu.org/bugs.html. | | Use a subject line meaningful to you and us to track the bug. | | Include the entire contents of this bug box in the report. | | Include the exact gcc-4.4 or gnatmake command that you entered. | | Also include sources listed below in gnatchop format | | (concatenated together with no headers between files). | +==========================================================================+ Please include these source files with error report Note that list may not be accurate in some cases, so please double check that the problem can still be reproduced with the set of files listed. bugtest1.adb compilation abandoned gnatmake: "bugtest1.adb" compilation error
まぁ古いしなぁ…
規格的にはOKだと思うんだけど、眠いので明日以降。