http://llvm.org/bugs/show_bug.cgi?id=16679

            Bug ID: 16679
           Summary: Report unrecognized arguments before reporting
                    argument incompatibility
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

What steps will reproduce the problem?
1. touch ~/Desktop/empty.cpp
2. $HOME/llvm/build/Release+Asserts/bin/clang++ -fsanitize=undefined
-fnosanitize=vptr -fno-rtti ~/Desktop/empty.cpp

What is the expected output? What do you see instead?

Expected:

clang: warning: argument unused during compilation: '-fnosanitize=vptr'
clang: error: invalid argument '-fsanitize=vptr' not allowed with '-fno-rtti'

What I got:

Only the error.  As a result, I didn't realize I had left out a hyphen in the
no-sanitize argument, and thought something was broken.

What version of the product are you using? On what operating system?

LLVM r186884 on Mac OS X 10.8.x

-- 
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