This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48212] [4.6/4.7 Regression] [C++0x] ICE: in non_const_var_error, at cp/semantics.c:6700 on invalid code
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 30 Mar 2011 20:29:54 +0000
- Subject: [Bug c++/48212] [4.6/4.7 Regression] [C++0x] ICE: in non_const_var_error, at cp/semantics.c:6700 on invalid code
- Auto-submitted: auto-generated
- References: <bug-48212-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48212
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-30 20:29:49 UTC ---
Author: jason
Date: Wed Mar 30 20:29:43 2011
New Revision: 171749
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171749
Log:
PR c++/48212
* semantics.c (non_const_var_error): Just return if DECL_INITIAL
is error_mark_node.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/regress/error-recovery1.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/semantics.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog