]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/init.cc
re PR c++/70267 (ICE on invalid code at -O1 and above on x86_64-linux-gnu in propagat...
authorJakub Jelinek <jakub@redhat.com>
Fri, 18 Mar 2016 07:59:36 +0000 (08:59 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 18 Mar 2016 07:59:36 +0000 (08:59 +0100)
commitdd125026935bd067c6da488d7faf94b180f1c861
treefb0e73835cbc0916a270daeab7ffa6fe5562eb76
parenta065dbc9f62bdeccc83e18e03da0384f45632b1e
re PR c++/70267 (ICE on invalid code at -O1 and above on x86_64-linux-gnu in propagate_necessity, at tree-ssa-dce.c:924)

PR c++/70267
* init.c (build_new_1): Complain and return error_mark_node
if alloc_fn is not _Jv_AllocObject function returning pointer.

* g++.dg/ext/java-3.C: New test.

From-SVN: r234319
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/java-3.C [new file with mode: 0644]