https://llvm.org/bugs/show_bug.cgi?id=24203

Richard Smith <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |INVALID

--- Comment #1 from Richard Smith <[email protected]> ---
(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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to