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/4.6/4.7 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: Wed, 25 May 2011 18:43:36 +0000
- Subject: [Bug c++/49165] [4.3/4.4/4.5/4.6/4.7 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
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.05.25 18:43:15
CC| |jakub at gcc dot gnu.org
Depends on|14083 |
Summary|ICE on for-loop/throw |[4.3/4.4/4.5/4.6/4.7
|combination |Regression] ICE on
| |for-loop/throw combination
Ever Confirmed|0 |1
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-25 18:43:15 UTC ---
Shorter testcase:
int
foo (bool x, int y)
{
if (y < 10 && (x ? true : throw 1))
y++;
return y;
}
ICE started between r112000 and r113000, before that it failed to compile with
error: void value not ignored as it ought to be error.
The ICE is during gimple_boolify, throw has void_type_node and fold_convert to
boolean_type_node ICEs.