The following valid code snippet triggers an ICE since GCC 4.3.0 (when __decltype was introduced):
================================================ template<int N> void foo(__decltype(N)); ================================================ bug.cc:1: internal compiler error: in finish_decltype_type, at cp/semantics.c:4645 -- Summary: ICE with decltype of template value parameter Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, 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=38640