> gcc -c q.ads
+===========================GNAT BUG DETECTED==============================+
| 4.0.0 20041231 (experimental) (i686-pc-linux-gnu) Assert_Failure
sem_ch3.adb:10509|
| Error detected at q.ads:5:4 |
| 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). |
+==========================================================================+
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.
q.ads
p.ads
r.ads
compilation abandoned
---chop here---
with P; use P;
package Q is
type Q_Type is new P_Type with null record;
end Q;
with R; use R;
package P is
type P_Type (<>) is tagged private;
private
type P_Type is new R_Type with null record;
end P;
package R is
type R_Type (I : Integer) is tagged null record;
end R;
--
Summary: ICE on legal (?) code: deriving from tagged type with
unknown discriminants
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ada
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: baldrick at free dot fr
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19219