Boost logo

Boost :

Subject: [boost] [contract] _NOEXCEPT errors in <ostream> for Clang 5.0 C++1z on Teeks Linux
From: Lorenzo Caminiti (lorcaminiti_at_[hidden])
Date: 2017-11-12 23:27:50


Hello all,

Most of Boost.Contract regression test fail for toolset
clang-gnu-linux-5.0~c++1z~lc on platform
teeks99-02-dc5-1z-lc-Docker-64on64 because of the following error on
#include <ostream> done by Boost.Range (and sometimes by
Boost.IOStreams):

  "clang++-5.0" -c -x c++ -Wno-c99-extensions -std=c++1z
-stdlib=libc++ -isystem/usr/include/libcxxabi -O0 -g -fno-inline -Wall
-g -fPIC -m64 -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTRACT_DISABLE_THREADS
-DBOOST_CONTRACT_DYN_LINK -DBOOST_SYSTEM_DYN_LINK=1 -I".."
-I"../libs/contract/test/function" -o
"/var/boost/run/results/boost/bin.v2/libs/contract/test/function-smoke.test/clang-gnu-linux-5.0~c++1z~lc/debug/threadapi-pthread/function/smoke.o"
"../libs/contract/test/function/smoke.cpp"

In file included from ../libs/contract/test/function/smoke.cpp:9:
In file included from
../libs/contract/test/function/../detail/oteststream.hpp:10:
In file included from ../boost/iostreams/tee.hpp:18:
In file included from ../boost/iostreams/detail/adapter/device_adapter.hpp:22:
In file included from ../boost/iostreams/detail/call_traits.hpp:15:
In file included from ../boost/iostreams/traits.hpp:38:
In file included from ../boost/range/iterator_range.hpp:14:
In file included from ../boost/range/iterator_range_io.hpp:32:
In file included from /usr/include/c++/v1/ostream:138:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:15:
/usr/include/c++/v1/string:1942:14: error: expected ';' at end of declaration
    _NOEXCEPT
             ^
/usr/include/c++/v1/string:1947:9: error: expected unqualified-id
        _NOEXCEPT
        ^
/usr/include/c++/v1/__config:368:21: note: expanded from macro '_NOEXCEPT'
# define _NOEXCEPT noexcept
                    ^
2 errors generated.

Of course, Boost.Range and Boost.IOStreams show the same error on this
toolset/platform independently of Boost.Contract.

Any idea what the issue might be?

Thanks,
--Lorenzo


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk