------- Comment #5 from reichelt at gcc dot gnu dot org 2008-12-28 22:11 ------- Confirmed. Reduced testcase for comment #1:
===================================================================== template<typename> struct A; template<typename, template<typename> class = A> void foo(); void bar() { foo<int>(); } ===================================================================== bug.cc: In function 'void bar()': bug.cc:1: internal compiler error: Segmentation fault Please submit a full bug report, [etc.] Removing the first template parameter yields a different error: ===================================================================== template<typename> struct A; template<template<typename> class = A> void foo(); void bar() { foo(); } ===================================================================== bug.cc: In function 'void bar()': bug.cc:1: internal compiler error: in tsubst_decl, at cp/pt.c:7958 Please submit a full bug report, [etc.] -- reichelt at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |reichelt at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2008-12-28 22:11:55 date| | Summary|ICEs in template-heavy C++0x|[C++0x] ICE on default |code |template template parameter | |in template function http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35828