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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |7.1.0
           Keywords|                            |ice-checking,
                   |                            |ice-on-valid-code
            Summary|GCC: 14: ICE when function  |ICE with function pointer
                   |pointer array as argument   |array as argument with
                   |                            |non-constant size

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed, goes back to before GCC 7, maybe before (-fchecking only exist in
GCC 7+).

Slightly better testcase:
```

 __attribute__((always_inline))
static inline void f(int n, int (*a())[n]) {
}

void g(void)
{
  int (*a())[1];
  f(1, a);
}

```

Reply via email to