This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/79413] [7 Regression] ICE in make_ssa_name_fn, at tree-ssanames.c:265
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 08 Feb 2017 16:41:59 +0000
- Subject: [Bug c/79413] [7 Regression] ICE in make_ssa_name_fn, at tree-ssanames.c:265
- Auto-submitted: auto-generated
- References: <bug-79413-4@http.gcc.gnu.org/bugzilla/>
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?