[LLVMbugs] [Bug 24203] Programs with ill-formed declarations not declaring anything compiles
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jul 21 14:30:03 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24203
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |richard-llvm at metafoo.co.uk
Resolution|--- |INVALID
--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
(In reply to comment #0)
> Since the program is ill-formed, I expect to get at least one
> error message.
Your expectation is not correct. The standard requires us to produce at least
one diagnostic message, and we do. All your examples produce a warning.
Also, if you want to enable clang's strictly-conforming mode, use -pedantic;
our default mode enables some extensions. If you want errors (not just
warnings) for all cases where a diagnostic is required, use -pedantic-errors.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150721/1b230403/attachment.html>
More information about the llvm-bugs
mailing list