[LLVMbugs] [Bug 13705] Warn on duplicate const specifier
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Aug 27 16:03:54 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13705
Aaron Ballman <aaron at aaronballman.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |aaron at aaronballman.com
Resolution| |WONTFIX
--- Comment #1 from Aaron Ballman <aaron at aaronballman.com> 2012-08-27 18:03:54 CDT ---
This appears to be working by design.
The duplicate specifier is allowed in C99 as well as C++11 (unless it appears
as a type specifier). This is declaring a type specifier, so the only time the
warning should not appear is when compiling as C99 or above.
So if you specify -std=c89 along with -pedantic, or compile as C++ (including
C++11) along with -pedantic, you will see the warning. But if you specify
-std=c99 and -pedantic, you will not see the warning.
--
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