Bug 694896

Summary: C++ compilation fails with "unexpected type name"
Product: [Fedora] Fedora Reporter: Rob Riggs <rob+redhat>
Component: llvmAssignee: Michel Lind <michel>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: bos, dmalcolm, gaul, genneth, michel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-02 22:10:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rob Riggs 2011-04-08 19:09:12 UTC
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):
clang-2.8-10.fc15.x86_64

How reproducible:
Always.

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.
  
Actual results:
Compilation fails with "unexpected type name" error.

Expected results:
A working executable as under Fedora 13.

Additional info:
This is a known incompatibility between clang++ up to 2.9 and GCC 4.6.

Comment 1 Michel Lind 2011-08-02 22:13:07 UTC
*** Bug 675622 has been marked as a duplicate of this bug. ***

Comment 2 Michel Lind 2011-08-02 22:13:45 UTC
*** Bug 687292 has been marked as a duplicate of this bug. ***