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

             Bug #: 12210
           Summary: clang++ should support -std=gnu99
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


Currently clang++ doesn't support -std=gnu99 as a language standard. This
prevents code like libdevil (http://openil.sourceforge.net/) from being
compiled with clang (such that both fink and macports are forced to use
llvm-gcc). Clang++ should be enhanced to support the gnu99 language standard.

Steps to Reproduce:
1) Install Xcode 4.3.1
2) Using the hello.cc test code...

#include <iostream>
  using namespace std;

  int main()                       
  {                            
    cout << "Hello, world.\n"; 
  }

...execute "clang++ -std=gnu99 hello.cc"

Expected Results:
I expected clang++ to support the gnu99 language standard as clang (for the c
language) does.

Actual Results:
The compiler produces the error....

error: invalid argument '-std=gnu99' not allowed with 'C++/ObjC++'

Also filed as <radr://11012382>

-- 
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

Reply via email to