[LLVMbugs] [Bug 13355] New: No warning when using c++ only options with C

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 13 08:18:16 PDT 2012


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: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    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.



More information about the llvm-bugs mailing list