https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96184
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Target Milestone|9.5 |11.0 Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Summary|[9/10 Regression] GCC |[11/12 Regression] GCC |treats "use of local |treats "use of local |variable with automatic |variable with automatic |storage from containing |storage from containing |function" differently in |function" differently in |versions |versions --- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> --- I think it's ill-formed, because the use of 'a' is in a function parameter scope, rather than in 'main'. The changes in whether we accepted this testcase were indeed by accident, as the way we handled 'this' injection changed whether parsing_nsdmi() returned true.