http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60108
Bug ID: 60108 Summary: ICE in use_thunk, at cp/method.c:340 Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: doko at gcc dot gnu.org seen with trunk and current 4.7 and 4.8 branches. $ g++ -std=c++0x -c sample.cpp sample.cpp:5:3: internal compiler error: in use_thunk, at cp/method.c:340 ~B() = default; ^ Please submit a full bug report, with preprocessed source if appropriate. template <class> struct A { virtual ~A(); }; template <class... Ts> struct B : A<Ts>... { ~B() = default; }; struct C : B<int, char> { C() {} };