https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80784
Bug ID: 80784 Summary: ICE in ACATS 4.1 c732b01 at -O1, -O2 Product: gcc Version: 7.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: simon at pushface dot org Target Milestone: --- Host: x86_64-apple-darwin15 Compiling the attached code, with the options used via "make check-acats", results in $ gnatmake -gnatws -O2 c732b01.adb gcc -c -gnatws -O2 c732b01.adb +===========================GNAT BUG DETECTED==============================+ | 7.1.0 (x86_64-apple-darwin15) GCC error: | | in begin_subprog_body, at ada/gcc-interface/utils.c:3297 | | Error detected at f732b00.ads:153:9 | | Please submit a bug report; see https://gcc.gnu.org/bugs/ . | | 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 command that you entered. | | Also include sources listed below. | +==========================================================================+ 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). c732b01.adb f732b00.ads report.ads compilation abandoned gnatmake: "c732b01.adb" compilation error -O1 gives the same ICE, -O0 or no -O flag results in $ gnatmake -gnatws -O0 c732b01.adb gcc -c -gnatws -O0 c732b01.adb gcc -c -gnatws -O0 f732b00.adb raised CONSTRAINT_ERROR : erroneous memory access gnatmake: "f732b00.adb" compilation error lockheed:c732b01 simon$ gnatmake -gnatws c732b01.adb gcc -c -gnatws f732b00.adb raised CONSTRAINT_ERROR : erroneous memory access gnatmake: "f732b00.adb" compilation error