[LLVMbugs] [Bug 11556] VLA folded pedantic error in -std=gnu99

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Dec 16 18:49:16 PST 2011


Eli Friedman <sharparrow1 at yahoo.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #1 from Eli Friedman <sharparrow1 at yahoo.com> 2011-12-16 20:49:16 CST ---
This is an unfortunate side-effect of r132983; the issue is that people use
something like the given construct, then depend on the it to get folded to a
constant, so that initialization, illegal gotos, etc. work correctly.  We
initially made some effort to do the right thing in both std=gnu99 and std=c99,
but it got to be too much effort to handle wacky edge cases, so gnu99 does the
non-compliant folding (and tells you that it did it in -pedantic mode).

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list