http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56196
Bug #: 56196 Summary: Assertion failure on aspect clause Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada AssignedTo: unassig...@gcc.gnu.org ReportedBy: si...@pushface.org Created attachment 29342 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29342 Reproducer Compiling the attached union.ads results in the bug box below. The code compiles with GNAT GPL 2012, though I think it shouldn't because this is a non-confirming representation aspect following freeze (ARM 13.1(10)). gcc -c -gnatwa -gnat12 -gnatd.n union.ads /opt/gcc-4.8-195682/lib/gcc/x86_64-apple-darwin12/4.8.0/adainclude/system.ads union.ads +===========================GNAT BUG DETECTED==============================+ | 4.8.0 20130202 (experimental) [trunk revision 195682] (x86_64-apple-darwin12) | | Assert_Failure atree.adb:903 | | Error detected at union.ads:1:1 | | 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 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. Consider also -gnatd.n switch (see debug.adb). union.ads compilation abandoned gnatmake: "union.ads" compilation error