https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126316
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.6.4
Summary|Bogus -Wdangling-pointer on |[13/14/15/16/17 Regression]
|variable length arrays in |Bogus -Wdangling-pointer on
|different scopes in -O2 |variable length arrays in
| |different scopes in -O2
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=51491
--- Comment #2 from Drea Pinski <pinskia at gcc dot gnu.org> ---
Note the diagnostic is new in GCC 12 but the wrong handling of this has been
there since r0-114046-g2f31f742a6932e which added
insert_clobber_before_stack_restore.