http://llvm.org/bugs/show_bug.cgi?id=13355
Bug #: 13355
Summary: No warning when using c++ only options with C
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Driver
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Not sure if this should be done in the driver or the FE, but we should warn
when c++ only options are used with C:
$ gcc -fvisibility-inlines-hidden test.c -S
cc1: warning: command line option ‘-fvisibility-inlines-hidden’ is valid for
C++/ObjC++ but not for C [enabled by default]
$ gcc -fno-rtti test.c -S
cc1: warning: command line option ‘-fno-rtti’ is valid for C++/ObjC++ but not
for C [enabled by default]
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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