This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]