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.