The following invalid testacse triggers an ICE since at least GCC 2.95.3: ================================ struct A; template<int> struct A {};
A a(0); ================================ bug.cc:2: error: 'A' is not a template type bug.cc:4: internal compiler error: in store_init_value, at cp/typeck2.c:593 Please submit a full bug report, [etc.] -- Summary: ICE with initialization of invalid variable Product: gcc Version: 4.2.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=27720