[config] recent change to suffix.hpp causing several failures for Oracle Developer Studio 12.5
A recent change to suffix.hpp seems to cause several tests to fail when compiling with Oracle Developer Studio12.5. 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... % 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
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...
% 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
participants (2)
-
Aparna Kumta
-
John Maddock