lewisje / address-sanitizer

Automatically exported from code.google.com/p/address-sanitizer
0 stars 0 forks source link

Report unrecognized arguments before reporting argument incompatibility #211

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by jruder...@gmail.com on 22 Jul 2013 at 11:23

GoogleCodeExporter commented 9 years ago
this is unrelated to asan, please file a bug at llvm.org/bugs

Original comment by konstant...@gmail.com on 23 Jul 2013 at 7:22

GoogleCodeExporter commented 9 years ago
Oops!

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

Original comment by jruder...@gmail.com on 23 Jul 2013 at 11:03

GoogleCodeExporter commented 9 years ago
Adding Project:AddressSanitizer as part of GitHub migration.

Original comment by ramosian.glider@gmail.com on 30 Jul 2015 at 9:13