G++ 3.4.5 under RedHat AS4 fails to compile Clang trunk

Compilation error output is attached.

Seems that G++ 3.4.5 fails to pick the right specialization version of getExprLocImpl() function in lib/AST/Expr.cpp.

error (43.2 KB)

http://llvm.org/docs/GettingStarted.html#brokengcc

-eric

Compilation error output is attached.

Seems that G++ 3.4.5 fails to pick the right specialization version of
getExprLocImpl() function in lib/AST/Expr.cpp.

http://llvm.org/docs/GettingStarted.html#brokengcc

Thanks for your reply! But this page suggests that GCC 3.4.x *MISCOMPILES* portions of the code on X86-64/amd64. IMHO this means GCC 3.4.x do compiles LLVM, but the compiled binary misbehaves. While my problem is GCC 3.4.5 fails to compile Clang (not LLVM).

Cheng

Compilation error output is attached.

Seems that G++ 3.4.5 fails to pick the right specialization version of
getExprLocImpl() function in lib/AST/Expr.cpp.

http://llvm.org/docs/GettingStarted.html#brokengcc

FWIW: gcc 3.4.x does not implement DR214. Thus it cannot pick the
right specialization.
The current workaround is http://pastebin.com/k6Zq5kkv