[cfe-dev] Error while compiling clang 2.9 on linux

Douglas Gregor dgregor at apple.com
Thu Apr 14 10:28:30 PDT 2011


On Apr 14, 2011, at 10:23 AM, Diptansu Das wrote:

> error is :
> 
> 
> llvm-2.9/tools/clang/lib/AST/Expr.cpp:111: note:
> clang::SourceLocation <unnamed>::getExprLocImpl(const clang::Expr*,
> clang::SourceLocation (clang::Expr::*)() const) [with E =
> clang::StringLiteral]
> <path to src>/llvm-build/tools/clang/lib/AST/../../include/clang/AST/StmtNodes.inc:551:
> error: call of overloaded `getExprLocImpl(const clang::Expr* const,
> clang::SourceLocation (clang::Expr::*)() const)' is ambiguous
> /< path to src >/llvm-2.9/tools/clang/lib/AST/Expr.cpp:101: note:
> candidates are: clang::SourceLocation <unnamed>::getExprLocImpl(const
> clang::Expr*, clang::SourceLocation (T::*)() const) [with E =
> clang::SubstNonTypeTemplateParmPackExpr, T = clang::Expr]
> 
> 
> Anyone know why this happened ?

It's probably a bug in the GCC you're using to build Clang. Which GCC version is this?

	- Doug



More information about the cfe-dev mailing list