re PR c++/93046 (ICE in cp_gimplify_init_expr)
authorJakub Jelinek <jakub@redhat.com>
Sun, 5 Jan 2020 00:49:14 +0000 (01:49 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sun, 5 Jan 2020 00:49:14 +0000 (01:49 +0100)
commit72036b59a0143c61acd2652a832e3903e180d0f9
tree6fd71becf369d6803fab4a017e9d6b849d257fd9
parent48cb874a04c2d34c91ad83e029ffeb8232bd3f23
re PR c++/93046 (ICE in cp_gimplify_init_expr)

PR c++/93046
* cp-gimplify.c (cp_gimplify_init_expr): Don't look through
TARGET_EXPR if it has been gimplified already.

* g++.dg/ext/cond4.C: New test.

From-SVN: r279884
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/cond4.C [new file with mode: 0644]