https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106465
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2022-07-29 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. The ICE is the following > ./cc1 -quiet t.c t.c: In function 'f': t.c:3:17: warning: anonymous struct declared inside parameter list will not be visible outside of this definition or declaration 3 | void g(int m, struct { char p[m]; } b) { } | ^~~~~~ t.c:1:5: internal compiler error: m from g referenced in f 1 | int f() | ^ 0x15818d9 convert_nonlocal_reference_op /home/rguenther/src/trunk/gcc/tree-nested.cc:1164