http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47326
Summary: ICE in tsubst_copy (triggered by dependency of return type on parameter pack size) Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: schmidt-thi...@ismll.de gcc (snapshot gcc-4.6-20110115) throws an internal compiler error when compiling the attached file "bug-gcc-ICE-return_type_depends_on_variadic_size.ii" > g++ -std=c++0x bug-gcc-ICE-return_type_depends_on_variadic_size.ii bug-gcc-ICE-return_type_depends_on_variadic_size.cpp: In function ‘int main()’: bug-gcc-ICE-return_type_depends_on_variadic_size.cpp:12:8: internal compiler error: in tsubst_copy, at cp/pt.c:11242 This bug is similar, but not identical to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47289 reported a couple of days ago by me and meanwhile fixed by Jason Merrill -- thank you a a lot ! (as gcc/testsuite/g++.dg/cpp0x/variadic105.C now does not throw an ICE anymore.) gcc was build from source and configured via > configure --prefix=/opt/prog/gcc/ -enable-languages=c,c++,fortran > --disable-multilib on ubuntu > uname -a Linux lst-desktop 2.6.32-24-generic #39-Ubuntu SMP Wed Jul 28 05:14:15 UTC 2010 x86_64 GNU/Linux