re PR c++/48212 ([C++0x] ICE: in non_const_var_error, at cp/semantics.c:6700 on inval...
authorJason Merrill <jason@redhat.com>
Wed, 30 Mar 2011 20:29:13 +0000 (16:29 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 30 Mar 2011 20:29:13 +0000 (16:29 -0400)
commitef5daa257f9c64996de02858910471cb666562aa
treebc5a4c06ac2c7718769720d69c2c3084bf45f9ab
parente0f89433aa35e607de82a7d0f96d1a4cb2089717
re PR c++/48212 ([C++0x] ICE: in non_const_var_error, at cp/semantics.c:6700 on invalid code)

PR c++/48212
* semantics.c (non_const_var_error): Just return if DECL_INITIAL
is error_mark_node.

From-SVN: r171748
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/regress/error-recovery1.C [new file with mode: 0644]