<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Report unrecognized arguments before reporting argument incompatibility"
   href="http://llvm.org/bugs/show_bug.cgi?id=16679">16679</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Report unrecognized arguments before reporting argument incompatibility
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jruderman@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>