From: Jakub Jelinek Date: Thu, 27 Sep 2012 11:01:17 +0000 (+0200) Subject: init.c (build_new_1): Don't test TREE_CONSTANT of INTEGER_CST. X-Git-Tag: misc/gccgo-go1_1_2~605 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1f10dd97237ffc9a2672a2882098a12594ddb6b;p=thirdparty%2Fgcc.git init.c (build_new_1): Don't test TREE_CONSTANT of INTEGER_CST. * init.c (build_new_1): Don't test TREE_CONSTANT of INTEGER_CST. From-SVN: r191803 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ef89bae85e99..46d8abed0975 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2012-09-27 Jakub Jelinek + + * init.c (build_new_1): Don't test TREE_CONSTANT + of INTEGER_CST. + 2012-09-25 Paolo Carlini PR c++/54526 diff --git a/gcc/cp/init.c b/gcc/cp/init.c index b18f600e1b0d..40d0ce325f38 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -2235,8 +2235,7 @@ build_new_1 (VEC(tree,gc) **placement, tree type, tree nelts, { tree inner_nelts = array_type_nelts_top (elt_type); tree inner_nelts_cst = maybe_constant_value (inner_nelts); - if (TREE_CONSTANT (inner_nelts_cst) - && TREE_CODE (inner_nelts_cst) == INTEGER_CST) + if (TREE_CODE (inner_nelts_cst) == INTEGER_CST) { bool overflow; double_int result = TREE_INT_CST (inner_nelts_cst)