[Bug c++/79655] [5/6/7 Regression] ICE on invalid c++ code in cxx_eval_store_expression in cp/constexpr.c:3464
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 21 12:41:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79655
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Or even just
constexpr int
f ()
{
int a[10] = { };
a[-1] = 4;
return a[0];
}
static_assert (f () == 0, "");
More information about the Gcc-bugs
mailing list