[Bug c/108423] [12/13 Regression] ICE in make_ssa_name_fn with VLA types in arguments and inlining since r12-5338-g4e6bf0b9dd5585df

muecker at gwdg dot de gcc-bugzilla@gcc.gnu.org
Fri Jan 20 08:55:15 GMT 2023


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

--- Comment #4 from Martin Uecker <muecker at gwdg dot de> ---

The specific problem is triggered by the change to pointer_int_sum in
gcc/c-family/c-common.cc, but the underlying problem is older. The following
example fails since gcc 7:

void f(int n, int (*a(void))[n])
{
    sizeof (*a());
}

int (*a(void))[1];

void g(void)
{
    f(1, a);
}


https://godbolt.org/z/645ahfrzx


More information about the Gcc-bugs mailing list