OSDN Git Service

PR c++/9335
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Apr 2010 06:06:27 +0000 (06:06 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:34:33 +0000 (14:34 +0900)
commit2749d0eb98e8dd66860f367358932659a2bdfd11
tree1a5d782ba0f6c5d7dcf8be0601d8b8e966cf1db7
parent684db69c82f50afffd129e14c969081fbb97791f
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/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/recurse2.C
gcc/testsuite/lib/prune.exp