http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53122
Bug #: 53122 Summary: internal compiler error: in unify, at cp/pt.c:15750 Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: jaredhober...@gmail.com Created attachment 27243 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27243 Zip file containing reproducer code and preprocessed soruce. The following code: template<typename... Args> void foo(Args&&... args) { } template<typename... Args> void bar(Args&&...) { auto fn = foo<Args...>; } int main() { return 0; } produces the following output when compiled with g++ 4.6.1: $ g++ -std=c++0x repro.cpp repro.cpp: In function ‘void bar(Args&& ...)’: repro.cpp:9:13: internal compiler error: in unify, at cp/pt.c:15750 Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions. Preprocessed source stored into /tmp/cclt2kKy.out file, please attach this to your bugreport. Compiler & system details: $ g++ --version ; uname -a g++-4.6.real (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Linux jhoberock-dt 3.0.0-14-generic #23-Ubuntu SMP Mon Nov 21 20:28:43 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux Example code and preprocessed source attached.