[Bug c/79413] [7 Regression] ICE in make_ssa_name_fn, at tree-ssanames.c:265

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Feb 8 16:42:00 GMT 2017


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

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
The typeof is not needed to trigger the ICE:

void fn1 ()
{
  int a[1/0];
}
void fn2 ()
{
  fn1();
}

But we create a DECL_EXPR for 'a' in finish_decl:
 5098               add_stmt (build_stmt (DECL_SOURCE_LOCATION (decl),
 5099                                     DECL_EXPR, decl));

So it doesn't seem to be the problem?


More information about the Gcc-bugs mailing list