https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108423
--- Comment #8 from Martin Uecker ---
https://gcc.gnu.org/pipermail/gcc-patches/2023-February/611562.html
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108423
--- Comment #7 from Martin Uecker ---
* gimplify_type_size does not recurse into pointer, record, or function types
(the later are not mentioned).
* the C FE has code to emit fake TYPE_DECLs for pointer types in
c-decl.cc/grokdeclarator
*
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108423
--- Comment #6 from Martin Uecker ---
Actually, I meant PR84305 for C.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108423
--- Comment #5 from Martin Uecker ---
Probably related to PR88256
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108423
--- Comment #4 from Martin Uecker ---
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108423
--- Comment #3 from Martin Uecker ---
Smaller example:
void f(int n, int (*a(void))[n])
{
(a())[0];
}
void g(void)
{
int (*a(void))[1];
f(1, a);
}
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108423
Martin Liška changed:
What|Removed |Added
Summary|[12/13 Regression] ICE in |[12/13 Regression] ICE in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108423
Richard Biener changed:
What|Removed |Added
Component|middle-end |c
Status|UNCONFIRMED