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/79413] [7 Regression] ICE in make_ssa_name_fn, at tree-ssanames.c:265


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?

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