[Bug ada/46318] New: ICE (GNAT bug box) on invalid
baldrick at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Nov 5 17:06:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46318
Summary: ICE (GNAT bug box) on invalid
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ada
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: baldrick@gcc.gnu.org
Caused by a missing parameter in a generic instantiation (the comma is
there, but not the term that should follow it). Occurs with current trunk.
$ gcc-4.6 -c m.adb
+===========================GNAT BUG DETECTED==============================+
| 4.6.0 20101105 (experimental) (x86_64-unknown-linux-gnu) Assert_Failure
sinfo.adb:1831|
| Error detected at n.adb:4:14 [m.adb:3:3] |
| 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).
m.adb
n.ads
n.adb
raised SYSTEM.ASSERTIONS.ASSERT_FAILURE : namet.adb:655
-- chop here -- testcase --
with N;
procedure M is
package NI is new N (1, -- missing term
);
begin null; end;
generic
A : Integer;
B : Integer := 0;
package N is
function F return Integer;
end;
package body N is
function F return Integer is
begin
return B;
end;
end;
More information about the Gcc-bugs
mailing list