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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |middle-end
           Keywords|                            |diagnostic
           Severity|normal                      |enhancement

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is by designed and is even documented:
https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/Warning-Options.html#index-Wvla-larger-than_003d

-Wvla-larger-than=‘PTRDIFF_MAX’ is enabled by default but is typically only
effective when -ftree-vrp is active (default for -O2 and above).

Reply via email to