This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49165] [4.3/4.4/4.5 Regression] ICE on for-loop/throw combination
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 27 May 2011 19:24:07 +0000
- Subject: [Bug c++/49165] [4.3/4.4/4.5 Regression] ICE on for-loop/throw combination
- Auto-submitted: auto-generated
- References: <bug-49165-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49165
--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-27 19:23:49 UTC ---
Author: jakub
Date: Fri May 27 19:23:46 2011
New Revision: 174351
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174351
Log:
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.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/eh/cond6.C
Modified:
branches/gcc-4_6-branch/gcc/c-family/ChangeLog
branches/gcc-4_6-branch/gcc/c-family/c-common.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog