[LLVMbugs] [Bug 12210] New: clang++ should support -std=gnu99
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Mar 8 11:45:31 PST 2012
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: unassignedclangbugs at nondot.org
ReportedBy: howarth at nitro.med.uc.edu
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list