re PR c++/88984 (ICE in genericize_switch_stmt, at cp/cp-gimplify.c:377)
authorJakub Jelinek <jakub@redhat.com>
Wed, 23 Jan 2019 14:39:43 +0000 (15:39 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 23 Jan 2019 14:39:43 +0000 (15:39 +0100)
commitd0f2db231639f73802c07f03cf4a77125a0daeb7
tree0b7b021ab86da9f22550c1365c406ea8440c67b6
parentef192ae1b63da0d71d0fb881d26b27db35fa2920
re PR c++/88984 (ICE in genericize_switch_stmt, at cp/cp-gimplify.c:377)

PR c++/88984
* cp-gimplify.c (genericize_switch_stmt): Move cond genericization
before the begin_bc_block call.

* c-c++-common/pr88984.c: New test.

From-SVN: r268187
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr88984.c [new file with mode: 0644]