http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47125
Summary: ICE occurs in combination with partial specialization and invalid template function. Product: gcc Version: 4.5.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: fl...@flast.jp compiler output: $ g++-4.5 testcase.cpp testcase.cpp: In function 'void g()': testcase.cpp:17:17: error: 'class enable_if<true, T>::type' resolves to 'enable_if<true, int>::type', which is is not a class type testcase.cpp:17:17: error: 'class enable_if<true, T>::type' resolves to 'enable_if<true, int>::type', which is is not a class type testcase.cpp:12:1: error: 'class enable_if<true, T>::type' resolves to 'enable_if<true, int>::type', which is is not a class type Internal compiler error: Error reporting routines re-entered. Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. tested version: 4.4.4-14ubuntu5 - OK 4.5.1 - Crash 4.5.2 - Crash 4.6.0 r168322 - Crash