[Bug c++/51225] [c++0x] [4.7 Regression] ICE with invalid template parameter
paolo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 18 20:45:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51225
--- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-01-18 20:27:27 UTC ---
Author: paolo
Date: Wed Jan 18 20:27:23 2012
New Revision: 183286
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183286
Log:
/cp
2012-01-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51225
* typeck2.c (store_init_value): Within a template guard
cxx_constant_value with require_potential_constant_expression.
* pt.c (convert_nontype_argument): Likewise.
/testsuite
2012-01-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51225
* g++.dg/cpp0x/pr51225.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/pr51225.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/cp/typeck2.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list