Red Hat Bugzilla – Bug 694896
C++ compilation fails with "unexpected type name"
Last modified: 2011-08-02 18:13:45 EDT
Description of problem:
clang-2.8 and clang-2.9 are incompatible with GCC 4.6. The problem is documented here: http://llvm.org/bugs/show_bug.cgi?id=9472
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. echo "#include <algorithm>" | clang++ -x c++ -c -
See link to llvm bug above. Any code that includes <algorithm> fails to compile.
Compilation fails with "unexpected type name" error.
A working executable as under Fedora 13.
This is a known incompatibility between clang++ up to 2.9 and GCC 4.6.
*** Bug 675622 has been marked as a duplicate of this bug. ***
*** Bug 687292 has been marked as a duplicate of this bug. ***