[Bug c++/70034] wrong column and repetitive -Wvla warning for each non-constant dimension of a VLA

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 3 01:15:00 GMT 2016


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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-03-03
                 CC|                            |manu at gcc dot gnu.org
            Summary|repetitive -Wvla warning    |wrong column and repetitive
                   |for each non-constant       |-Wvla warning for each
                   |dimension of a VLA          |non-constant dimension of a
                   |                            |VLA
     Ever confirmed|0                           |1

--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> I actually think three is more correct.  The issue is column for where the
> VLA is referenced is incorrect.

I think it would be ok to give just one warning per declaration, but Andrew is
right that the column is wrong and that makes them look repetitive when they
actually refer to the three dimensions.


More information about the Gcc-bugs mailing list