OSDN Git Service

PR c++/9335
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Apr 2010 06:06:27 +0000 (06:06 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Apr 2010 06:06:27 +0000 (06:06 +0000)
commit7a00f93919dce5b91d4638bf98be606d968431ba
tree631ba0c2a3cd0765b80dd1f410e73be5326be1dc
parent0cc9609c42e4816ce68e2085ca8d14ef82e4b702
PR c++/9335
gcc/cp:
* init.c (constant_value_1): Treat error_mark_node as a constant
if DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P is set.
* cvt.c (ocp_convert): Handle getting error_mark_node from
integral_constant_value.
* decl.c (compute_array_index_type): Likewise.
gcc/testsuite:
* lib/prune.exp: Prune "skipping N instantiation contexts".

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158586 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cvt.c
gcc/cp/decl.c
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/member1.C
gcc/testsuite/g++.dg/other/fold1.C
gcc/testsuite/g++.dg/parse/crash36.C
gcc/testsuite/g++.dg/template/recurse2.C [new file with mode: 0644]
gcc/testsuite/lib/prune.exp