This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/84305] ICE inlining a VLA cast expression
- From: "rsandifo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 09 Feb 2018 09:43:03 +0000
- Subject: [Bug c/84305] ICE inlining a VLA cast expression
- Auto-submitted: auto-generated
- References: <bug-84305-4@http.gcc.gnu.org/bugzilla/>
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.)