re PR c++/49165 (ICE on for-loop/throw combination)
authorJakub Jelinek <jakub@redhat.com>
Thu, 26 May 2011 10:25:21 +0000 (12:25 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 26 May 2011 10:25:21 +0000 (12:25 +0200)
commit1537737f284eaacd8a335d1c8dbfb6cd10b0803b
treeae7149622fb245d57c64ae999c5287bfe155f862
parent7b1ac803d3fa6873c336109b1f68be1b62f31300
re PR c++/49165 (ICE on for-loop/throw combination)

PR c++/49165
* gimplify.c (shortcut_cond_r): Don't special case
COND_EXPRs if they have void type on one of their arms.

* g++.dg/eh/cond5.C: New test.

From-SVN: r174273
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/eh/cond5.C [new file with mode: 0644]