clang++ uses older g++ library

Bug #1081905 reported by Joe Wood
6
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/c++/4.6/chrono:666:7: error: static_assert expression is
      not an integral constant expression
      static_assert(system_clock::duration::min()
      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package clang - 3.2~rc3-1~exp3ubuntu2

---------------
clang (3.2~rc3-1~exp3ubuntu2) raring; urgency=low

  * Build-depend on python.
 -- Matthias Klose <email address hidden> Thu, 20 Dec 2012 15:09:28 +0100

Changed in clang (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.