]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-family/ChangeLog
re PR c++/49165 (ICE on for-loop/throw combination)
authorJakub Jelinek <jakub@redhat.com>
Fri, 27 May 2011 19:19:36 +0000 (21:19 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 27 May 2011 19:19:36 +0000 (21:19 +0200)
commit4cc4f2f437f583f78c3bae594bb019b7a767eb13
tree5c9e3a4746746875cf007866de55c9eb44b2aec0
parentba869341b42aefb6c58d513c0cabeaed22091bf2
re PR c++/49165 (ICE on for-loop/throw combination)

PR c++/49165
* c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
C++ don't call c_common_truthvalue_conversion on void type arms.

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

From-SVN: r174350
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/eh/cond6.C [new file with mode: 0644]