Opened 10 years ago

Closed 7 years ago

#7708 closed Bugs (worksforme)

clang + C++11 + libstdc++ compile errors

Reported by: viboes Owned by: Gennadiy Rozental
Milestone: Boost 1.59.0 Component: test
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

There are a lot of errors when compiling with clang on c++11 mode and linking with the default library libstdc++. The errors come from the fact that the code is expecting the standard library to provide some c++11 features which are missing, as std::forward.

clang-darwin.compile.c++ ../../../bin.v2/libs/test/test/class_properties_test.test/clang-darwin-3.1x/debug/class_properties_test.o
In file included from class_properties_test.cpp:17:
In file included from ../../../boost/test/unit_test.hpp:19:
In file included from ../../../boost/test/test_tools.hpp:373:
In file included from ../../../boost/test/tools/impl.hpp:25:
In file included from ../../../boost/test/tools/assertion.hpp:19:
../../../boost/test/utils/is_forward_iterable.hpp:72:26: error: no template named 'enable_if' in namespace 'std'; did you mean '__gnu_cxx::__enable_if'?
    static typename std::enable_if<
                    ~~~~~^~~~~~~~~
                         __gnu_cxx::__enable_if

See the attached file for a complete list of failures when running the libs/test tests.

Attachments (1)

f.log.gz (12.7 KB ) - added by viboes 10 years ago.

Download all attachments as: .zip

Change History (2)

by viboes, 10 years ago

Attachment: f.log.gz added

comment:1 by Gennadiy Rozental, 7 years ago

Milestone: To Be DeterminedBoost 1.59.0
Resolution: worksforme
Status: newclosed

I believe clang compilation works fine now.

Note: See TracTickets for help on using tickets.