https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109450
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code, | |wrong-code --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The issue is related to struct foo in the function declaration. With a slightly modified code you can get an ICE instead: int bar(int n, struct foo *x) { int a = n; struct foo { char buf[a++]; }* p = x; return n == a; } int main() { return bar(1, 0); }