The following bug box is generated with the attched test case:
+===========================GNAT BUG DETECTED==============================+
| 4.0.1 (i686-pc-linux-gnu) in create_tmp_var, at gimplify.c:368 |
| Error detected at message_pool.adb:62:5 |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html. |
| 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). |
+==========================================================================+
Using built-in specs.
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.
message_pool.adb
message_pool.ads
compilation abandoned
gnatmake: "message_pool.adb" compilation error
gcc version:
Target: i686-pc-linux-gnu
Configured with: /home/scott/gcc-4.0.1/gcc-4.0.1/configure
--prefix=/usr/local/gcc-4.0.1 --enable-languages=c,c++,ada
Thread model: posix
gcc version 4.0.1
command line: /usr/local/gcc-4.0.1/bin/gnatmake -gnat05 message_pool.adb
gcc -c -gnat05 message_pool.adb
The code attached is reduce set of the code which originally uncovered the
problem. I have noticed that removing the Temp_Key variable allows the code to
compile without error or warning. In my original code this variable was
necessary, in the test case it is only there to demonstrate the failure.
--
Summary: Bug box in Ada compiler: in create_tmp_var, at
gimplify.c:368
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ada
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sgmcmillan at gmail dot com
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24564