[cfe-dev] clang vs boost - take 3

Maurice Gittens mainmanmauricio at gmail.com
Fri Jan 29 03:04:13 CST 2010


Hi,

today, llvm and clang actually links again on my Linux box so I decided to
see how well clang currently does at compiling the boost headers.

It turns out that there remain only 7 top-level boost header files
that do not compile for me with the current version of clang.

More specifically the toplevel header files:

#include <boost/regex.hpp>
#include <boost/unordered_set.hpp>
#include <boost/unordered_map.hpp>
#include <boost/dynamic_bitset.hpp>
#include <boost/asio.hpp>

do not yet compile with clang++ for me.

Compilation of the above header files all crash as a result of the following
assertion failure.
// clang: SemaExpr.cpp:1521:
clang::ASTOwningResult<&clang::ActionBase::DeleteExpr>
clang::Sema::BuildDeclarationNameExpr(const clang::CXXScopeSpec&,
clang::SourceLocation, clang::NamedDecl*): Assertion
`!isa<FunctionTemplateDecl>(D) && "Cannot refer unambiguously to a function
template"' failed.

The remaining header files which do no compile for me are:
#include <boost/mpi.hpp>
#include <boost/python.hpp>

The issue with these header files is probably not related to clang
because they do not compile with gcc either.
(Something about required header files missing that I'll probably hunt down
sometime)

Should I close the bug reports that now appear to have been currently fixed?

Once all headers compile I'll try to run the boost regression test-suite
to see what else can be shaken out.

Cheers,
Maurice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.uiuc.edu/pipermail/cfe-dev/attachments/20100129/cb8fadf4/attachment.html 


More information about the cfe-dev mailing list