Boost logo

Boost :

Subject: Re: [boost] [config] recent change to suffix.hpp causing several failures for Oracle Developer Studio 12.5
From: John Maddock (jz.maddock_at_[hidden])
Date: 2016-09-09 08:27:47


On 08/09/2016 19:17, Aparna Kumta wrote:
> A recent change to suffix.hpp seems to cause several tests to fail
> when compiling with Oracle Developer Studio12.5.

This looks to be a compiler bug: if __has_cpp_attribute is defined then
__has_cpp_attribute(anything_you_want) should be a valid constant
expression?

But whatever I've just pushed a workaround.

Thanks for the heads-up, John.

>
> The error is:
> "CC" -std=c++11 -xO4 -mt -erroff=%none -m32 -DBOOST_ALL_NO_LIB=1
> -DBOOST_CHRONO_STATIC_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED
> -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_TEST_NO_AUTO_LINK=1
> -DBOOST_TIMER_STATIC_LINK=1 -DNDEBUG -D__typeof__=__typeof__ -I".." -c
> -o ./count.o" "../libs/accumulators/test/count.cpp"
>
> "../boost/config/suffix.hpp", line 628: Error: Badly formed constant
> expression.
> <snipped>
>
> See:
> http://www.boost.org/development/tests/develop/developer/output/oracle-sparc-S2-12-5-cpp11-boost-bin-v2-libs-accumulators-test-count-test-sun-12-5_cpp11-release-link-static-threading-multi.html
>
>
> % diff ./suffix.hpp ./suffix.hpp_orig
> 626a627,630
> > # elif defined(__has_cpp_attribute)
> > # if __has_cpp_attribute(noreturn)
> > # define BOOST_NORETURN [[noreturn]]
> > # endif
> %
>
>
> Thanks,
>
> Aparna
>
>
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>


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