This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/48212] [4.6/4.7 Regression] [C++0x] ICE: in non_const_var_error, at cp/semantics.c:6700 on invalid code


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]