[Bug middle-end/50890] New: [4.7 Regression] ICE in fold_convert_loc, at fold-const.c:1894
belyshev at depni dot sinp.msu.ru
gcc-bugzilla@gcc.gnu.org
Thu Oct 27 21:54:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50890
Bug #: 50890
Summary: [4.7 Regression] ICE in fold_convert_loc, at
fold-const.c:1894
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: belyshev@depni.sinp.msu.ru
CC: hubicka@gcc.gnu.org
r172609
(http://gcc.gnu.org/viewcvs?limit_changes=0&view=revision&revision=172609)
caused ICE with -O2 or -O1 -finline-small-functions on this (invalid?)
testcase, note function pointer type cast:
static float make_insn_raw (void)
{
return 0;
}
static int emit_pattern_after_noloc (int (make_raw) ())
{
return make_raw ();
}
void emit_insn_after_noloc (void)
{
emit_pattern_after_noloc ((void *) make_insn_raw);
}
bug.c:8:3: internal compiler error: in fold_convert_loc, at fold-const.c:1894
More information about the Gcc-bugs
mailing list