clang++ uses older g++ library
Bug #1081905 reported by
Joe Wood
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
clang (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 12.10
clang:
Installed: 3.0-6ubuntu3
gcc:
Installed: 4:4.7.2-1ubuntu2
g++:
Installed: 4:4.7.2-1ubuntu2
The following invocation of clang fails to find the 4.7 g++ standard libraries and instead uses the 4.6 libraries:
$ clang++ -std=c++11 -pthread threads.cpp
result:
In file included from threads.cpp:1:
/usr/include/
not an integral constant expression
static_
^ ~~~~~~~
1 error generated.
It should be looking in the 4.7 include lib. I believe that this is a known fault with g++ 4.6.
To post a comment you must log in.
This bug was fixed in the package clang - 3.2~rc3- 1~exp3ubuntu2
--------------- 1~exp3ubuntu2) raring; urgency=low
clang (3.2~rc3-
* Build-depend on python.
-- Matthias Klose <email address hidden> Thu, 20 Dec 2012 15:09:28 +0100