Subject: Re: [boost] [contract] _NOEXCEPT errors in <ostream> for Clang 5.0 C++1z on Teeks Linux
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2017-11-15 20:20:14
On 11/15/17 20:19, Lorenzo Caminiti via Boost wrote:
> On Sun, Nov 12, 2017 at 3:27 PM, Lorenzo Caminiti <lorcaminiti_at_[hidden]> wrote:
>> "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
>> In file included from ../libs/contract/test/function/smoke.cpp:9:
>> In file included from
>> 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
>> /usr/include/c++/v1/string:1947:9: error: expected unqualified-id
>> /usr/include/c++/v1/__config:368:21: note: expanded from macro '_NOEXCEPT'
>> # define _NOEXCEPT noexcept
>> 2 errors generated.
> Any idea about this? I couldn't find any reference to it online...
> Again, Boost.Range and Boost.IOStreams see the same errors for Clang
> 5.0 on Teeks.
Looks like a libc++ bug, like a missing semicolon.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk