With G++ 4.3.3 and 4.4.0 from Ubuntu Jaunty, I get: ice.cpp: In instantiation of âs<0>â: ice.cpp:19: instantiated from here ice.cpp:14: internal compiler error: in tsubst, at cp/pt.c:9687
from this test program: int foo(int x, ...); template<int x> int bar() { return 0; } template<int u> struct s { template<typename... _T> static inline void f(typeof(foo(bar<_T>()...)) a) { } }; s<0> g; -- Summary: ICE in tsubst, at cp/pt.c:9687 with variadic templates Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: luca dot barbieri at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40895