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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|diagnostic                  |
          Component|middle-end                  |c++
            Summary|regression - Incorrect      |VLA with lamba causes an
                   |warning (is used            |incorrect unitialized in
                   |uninitialized in this       |this function warning
                   |function)                   |

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note this code uses a GCC extension of VLAs.  This is why converting SIZE to be
a const variable works and does not show the warning.  Adding const changes buf
to being a normal array definition away from VLAs.

Reply via email to