Created attachment 22723 [details] Test case, compile with C++0x. The attached test case fails with an ICE: test.ii:6:18: internal compiler error: unexpected expression ‘CreateA<A>’ of kind template_id_expr Using: g++-trunk -std=gnu++0x test.ii With g++-trunk (GCC) 4.6.0 20101211 (experimental) (revision 167723) It compiles fine with gcc 4.5.1, 4.4.5 and 4.3.5.
Looks like a regression.
Mine.
Author: jason Date: Fri Jan 14 13:08:11 2011 New Revision: 168783 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168783 Log: PR c++/46903 * typeck2.c (check_narrowing): Only check arithmetic types. Added: trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-regress1.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/typeck2.c trunk/gcc/testsuite/ChangeLog
Fixed.
*** Bug 47020 has been marked as a duplicate of this bug. ***