http://llvm.org/bugs/show_bug.cgi?id=18333
Bug ID: 18333
Summary: -fixit-recompile drops warning flags
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
This program compiles fine normally, but has compilation errors with
-fixit-recompile:
hummer:clang thakis$ cat test.cc
#include <memory.h>
struct A { void f() {} };
void f() {
A* a;
a->f();
register int data;
}
hummer:clang thakis$ ../../Release+Asserts/bin/clang -c test.cc
-Wno-deprecated-register -std=c++11 -Werror
hummer:clang thakis$ ../../Release+Asserts/bin/clang -c test.cc -Xclang
-fixit-recompile -Wno-deprecated-register -std=c++11 -Werror
test.cc:9:3: error: 'register' storage class specifier is deprecated
[-Werror,-Wdeprecated-register]
register int data;
^~~~~~~~~
1 error generated.
--
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