http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59115
Volker Reichelt <reichelt at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |4.6.0 Summary|[c++1y] ICE with auto as |[4.7/4.8/4.9 Regression] |template parameter |ICE with invalid template | |parameter Known to fail| |4.7.0, 4.8.0 --- Comment #2 from Volker Reichelt <reichelt at gcc dot gnu.org> --- Thanks for pointing that out, Adam! So here are two updated testcases. The first one contains multiple programming errors: ================================================================= template<typename T, float, int, typename U> void foo(T, U) {} void bar() { foo(0, 0); } ================================================================= The second one only contains a single error. but requires "-std=c++11": ================================================================= template<typename T, float = 0, int = 0, typename U = int> void foo(T, U) {} void bar() { foo(0, 0); } ================================================================= Both crash since GCC 4.7.0.