[Bug c/84305] ICE inlining a VLA cast expression

rsandifo at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Feb 9 10:03:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84305

--- Comment #1 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
This testcase:

--------------------------------------------------------------
int res, a, b;
void *foo;
static void f2 (int arg) { res = ((int (*)[arg][b]) foo)[0][0][0]; }
void f1 (void) { f2 (a); }
--------------------------------------------------------------

generates an ICE in make_ssa_name_fn, during remap_type, because
the TYPE_SIZE_UNIT of the outer array contains a freed SSA_NAME.

(Sorry for the empty description, gateway timeout.)


More information about the Gcc-bugs mailing list