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

            Bug ID: 58870
           Summary: ICE on invalid: Assert_Failure sinfo.adb:1933
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: baldrick at gcc dot gnu.org

To see this the compiler has to be built with checking enabled.

$ gcc -c m.adb
+===========================GNAT BUG DETECTED==============================+
| 4.9.0 20131014 (experimental) (x86_64-unknown-linux-gnu) Assert_Failure
sinfo.adb:1933|
| 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 --

with N;
procedure M is
  package NI is new N (1, -- missing term
  );
begin null; end;
package body N is
  function F return Integer is
  begin
      return B;
  end;
end;
generic
   A : Integer;
   B : Integer := 0;
package N is
   function F return Integer;
end;

Reply via email to