[LLVMbugs] [Bug 16679] New: Report unrecognized arguments before reporting argument incompatibility

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 23 04:00:32 PDT 2013


            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: unassignedbugs at nondot.org
          Reporter: jruderman at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    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?


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130723/56b5638e/attachment.html>

More information about the llvm-bugs mailing list