http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57849
Bug ID: 57849 Summary: With Convention => C causes Bug box with -gnat2012 Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: prosfilaes at gmail dot com $ gcc -gnatd.n -gnat2012 -c -Wall g.adb /home/prosfilaes/bin/gcc-4.8.0/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/adainclude/system.ads g.adb +===========================GNAT BUG DETECTED==============================+ | 4.8.0 (x86_64-unknown-linux-gnu) GCC error: | | in gnat_to_gnu_entity, at ada/gcc-interface/decl.c:336 | | Error detected at g.adb:3:48 | | 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). g.adb g.adb:3:04: warning: constant "AR" is not referenced compilation abandoned $ cat g.adb procedure g is type Glp_Matrix_Values_Array is array (Natural range <>) of Long_Float; AR : constant Glp_Matrix_Values_Array (0 .. 12) := (others => 1.0) with Convention => C; begin null; end g;