[LLVMbugs] [Bug 13881] Clang incorrectly accepts zero-length arrays that are not flexible array members

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Sep 21 16:21:45 PDT 2012


Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #6 from Richard Smith <richard-llvm at metafoo.co.uk> 2012-09-21 18:21:45 CDT ---
I'm marking this as fixed again because:
1) We no longer (incorrectly) produce a NULL pointer value for a length-0
array, and
2) You can now use -Werror=zero-length-array to disable this extension and no

If you think we should change our default behavior to reject this construct by
default (or perhaps to reject it when using -std=c99 but not when using
-std=gnu99), please send a mail to cfe-dev@ so we can discuss what the relevant
policy should be. Bugzilla isn't a good place to hold such discussions.

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