[Bug c++/51225] [c++0x] [4.7 Regression] ICE with invalid template parameter
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=gccview=revrev=183286 Log: /cp 2012-01-18 Paolo Carlini paolo.carl...@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.carl...@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
[Bug c++/51225] [c++0x] [4.7 Regression] ICE with invalid template parameter
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51225 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED --- Comment #5 from Paolo Carlini paolo.carlini at oracle dot com 2012-01-18 20:30:58 UTC --- Done.
[Bug c++/51225] [c++0x] [4.7 Regression] ICE with invalid template parameter
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51225 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Status|NEW |ASSIGNED AssignedTo|unassigned at gcc dot |paolo.carlini at oracle dot |gnu.org |com --- Comment #3 from Paolo Carlini paolo.carlini at oracle dot com 2012-01-13 16:18:22 UTC --- On it.
[Bug c++/51225] [c++0x] [4.7 Regression] ICE with invalid template parameter
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51225 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P5
[Bug c++/51225] [c++0x] [4.7 Regression] ICE with invalid template parameter
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51225 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Status|ASSIGNED|NEW AssignedTo|paolo.carlini at oracle dot |unassigned at gcc dot |com |gnu.org
[Bug c++/51225] [c++0x] [4.7 Regression] ICE with invalid template parameter
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51225 --- Comment #2 from Volker Reichelt reichelt at gcc dot gnu.org 2011-12-04 22:46:24 UTC --- Here's another code snippet that triggers a similar ICE: struct A {}; templatetypename struct B { static constexpr A a = A(x); }; bug.cc:5:28: error: 'x' was not declared in this scope bug.cc:5:29: internal compiler error: unexpected expression '(const A)(A)(expression error)' of kind implicit_conv_expr Please submit a full bug report, [etc.]
[Bug c++/51225] [c++0x] [4.7 Regression] ICE with invalid template parameter
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51225 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed||2011-11-23 AssignedTo|unassigned at gcc dot |paolo.carlini at oracle dot |gnu.org |com Ever Confirmed|0 |1 --- Comment #1 from Paolo Carlini paolo.carlini at oracle dot com 2011-11-23 17:44:24 UTC --- One way or another, I'll fix it.
[Bug c++/51225] [c++0x] [4.7 Regression] ICE with invalid template parameter
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51225 Volker Reichelt reichelt at gcc dot gnu.org changed: What|Removed |Added Keywords||error-recovery, ||ice-on-invalid-code Target Milestone|--- |4.7.0