http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48844

           Summary: GNAT bug box, referring to gimplify.c, possibly to do
                    with aliasing and discriminant
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: bauh...@futureapps.de


Created attachment 24166
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24166
Source files mentioned in the bug report

The following line, from function Convert below,
seems to cause the bug box.
(The program is fully produced from a note
an how erroneous execution can undermine
type safety; the original is here:
http://www.enyo.de/fw/notes/ada-type-safety.html )

 M := (Sel => Source_Field, S => (S => S)); --!


$ gnatchop  -r -w conv.ada && gnatmake convert_test
splitting conv.ada into:
   conversion.ads
   convert_test.adb
   conversion.adb
gcc -c convert_test.adb
+===========================GNAT BUG DETECTED==============================+
| 4.7.0 20110411 (experimental) (i686-pc-linux-gnu) GCC error:             |
| in create_tmp_var, at gimplify.c:465                                     |
| Error detected around
/usr/local/lib/gcc/i686-pc-linux-gnu/4.7.0/adainclude/s-addima.ads:17:13|
| 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).

convert_test.adb
conversion.ads
conversion.adb


raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:423
gnatmake: "convert_test.adb" compilation error

Reply via email to