[Bug ada/53767] New: ICE deriving from class wide generic access parameter

baldrick at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 25 12:25:00 GMT 2012


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

             Bug #: 53767
           Summary: ICE deriving from class wide generic access parameter
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: baldrick@gcc.gnu.org


Introduced in gcc-4.7, still present in mainline.

$ gcc-4.7 -c p.ads
+===========================GNAT BUG DETECTED==============================+
| 4.7.1 20120603 (prerelease) (x86_64-unknown-linux-gnu) Assert_Failure
sinfo.adb:730|
| Error detected at p.ads:5:4                                              |
| 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).

p.ads
g.ads

compilation abandoned

-- chop here --

generic
   type T is tagged private;
   type P is access T'Class;
package G is
   type NP is new P;
end;

with G;
package P is
   type T is tagged null record;
   type P is access T'Class;
   package GI is new G (T, P);
end;



More information about the Gcc-bugs mailing list