The following invalid code snippet causes an ICE since at least GCC 2.95.3:
================================= template<void[]> struct A; ================================= bug.cc:1: error: creating array of void bug.cc:1: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in process_template_parm, at cp/pt.c:2354 Please submit a full bug report, [etc.] -- Summary: ICE on array of voids as template parameter 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=27430