Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 387483 - sys-devel/clang-2.9-r1: clang++ won't work with GCC-4.6 C++ libraries
Summary: sys-devel/clang-2.9-r1: clang++ won't work with GCC-4.6 C++ libraries
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on: 388843
Blocks: gcc-4.6
  Show dependency tree
 
Reported: 2011-10-18 00:33 UTC by Tolga Dalman
Modified: 2011-10-30 19:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tolga Dalman 2011-10-18 00:33:58 UTC
Compiling trivial C++ applications with clang++ result in errors.


Reproducible: Always

Steps to Reproduce:
1. Create a C++ file containing #include <string>
2. Switch to gcc-4.6.1 with gcc-config
3. Compile with clang++ -c
Actual Results:  
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.1/include/g++-v4/string:41:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.1/include/g++-v4/bits/char_traits.h:40:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.1/include/g++-v4/bits/stl_algobase.h:378:43: error: 
      unexpected type name '_ValueTypeI': expected expression
      const bool __simple = (__is_trivial(_ValueTypeI)
                                          ^
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.1/include/g++-v4/bits/stl_algobase.h:383:40: error: 
      non-type template argument of type 'const bool' is not an integral
      constant expression
      return std::__copy_move<_IsMove, __simple,
                                       ^~~~~~~~
(cut)


This is a blocker for Bug 346809 (gcc-4.6 tracker).
See also LLVM bugzilla: http://llvm.org/bugs/show_bug.cgi?id=9472
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2011-10-30 19:32:02 UTC
Fixed in 4.6.2.