PR c++/68308 - [6 Regression] ICE: tree check: expected integer_cst,
authorMartin Sebor <msebor@redhat.com>
Tue, 17 Nov 2015 18:09:36 +0000 (18:09 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Tue, 17 Nov 2015 18:09:36 +0000 (11:09 -0700)
commitf091ee191c503faa298df9410159b90cf3bde03a
treef201bfa497ee26f1b8f351e7779452fa6aef18b2
parent54e484eb15aa193578144cb1b22532a2f0f28b2f
PR c++/68308 - [6 Regression] ICE: tree check: expected integer_cst,

have var_decl in decompose, at tree.h:5105

gcc/
    * cp/init.c (build_new_1): Check for expression constness
    the right way.

testsuite/
    * g++.dg/init/new46.C: New test.

From-SVN: r230468
gcc/ChangeLog
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/new46.C [new file with mode: 0644]