[Bug c++/15508] Size evaluation of variable-length array seem to be skipped in some cases.

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue May 18 23:02:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-18 11:48 -------
Fixed in 3.4.0 by rejecting the VLA: 
pr15508.cc: In function `void func(int)':
pr15508.cc:7: error: `r' cannot appear in a constant-expression

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
             Status|UNCONFIRMED                 |RESOLVED
           Keywords|                            |accepts-invalid
         Resolution|                            |FIXED
   Target Milestone|---                         |3.4.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15508



More information about the Gcc-bugs mailing list