This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51225] [c++0x] [4.7 Regression] ICE with invalid template parameter
- From: "paolo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 18 Jan 2012 20:27:27 +0000
- Subject: [Bug c++/51225] [c++0x] [4.7 Regression] ICE with invalid template parameter
- Auto-submitted: auto-generated
- References: <bug-51225-4@http.gcc.gnu.org/bugzilla/>
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