[Bug c++/38637] New: [4.4 regression] ICE with template declaration of enum
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Dec 26 22:30:00 GMT 2008
The following invalid code snippet triggers an ICE on mainline:
========================================
template<int> enum E : int { e };
========================================
bug.cc:1: error: template declaration of 'enum E'
bug.cc:1: internal compiler error: tree check: expected integer_type or
enumeral_type or boolean_type or real_type or fixed_point_type, have error_mark
in start_enum, at cp/decl.c:10911
Please submit a full bug report, [etc.]
--
Summary: [4.4 regression] ICE with template declaration of enum
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38637
More information about the Gcc-bugs
mailing list