http://llvm.org/bugs/show_bug.cgi?id=9138
Summary: Missing builtins used in gcc 4.4.5 cmath header
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Created an attachment (id=6101)
--> (http://llvm.org/bugs/attachment.cgi?id=6101)
Output from compiling cmath in C++0x mode
When #including the gcc 4.4.5 <cmath> header there are many builtin functions
which clang does not support. In particular, the following yields the attached
53 errors:
$ clang++ --version
clang version 2.9 (trunk 124897)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ g++ --version
g++ (Gentoo 4.4.5 p1.0, pie-0.4.5) 4.4.5
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ cat cmath.cpp
#include <cmath>
int main()
{
}
$ clang++ -std=gnu++0x -o cmath cmath.cpp -ferror-limit=100 > compile-output
2>&1
--
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