Boost C++ Libraries: Ticket #13633: boost/system/error_code.hpp fails to compile on clang-3.6 in gnu++14 mode due to invalid constexpr https://svn.boost.org/trac10/ticket/13633 <p> A minimal test file that includes "boost/system/error_code.hpp" fails to compile on my clang-3.6 in gnu++14 mode with the Boost 1.68.0 beta 1. The exact command line and error message are: </p> <p> rainer@rainer10:~/work/cpp_test$ schroot -c steamrt_scout_amd64 -- clang-3.6 -std=gnu++14 -c test.cpp -I boost_1_68_0/ In file included from test.cpp:1: boost_1_68_0/boost/system/error_code.hpp:226:41: error: constexpr constructor </p> <blockquote> <p> never produces a constant expression [-Winvalid-constexpr] </p> <blockquote> <p> BOOST_SYSTEM_CONSTEXPR explicit std_category( boost::system::err... </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> </blockquote> <p> boost_1_68_0/boost/system/error_code.hpp:226:41: note: non-constexpr constructor </p> <blockquote> <p> 'error_category' cannot be used in a constant expression </p> </blockquote> <p> /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/system_error:69:5: note: </p> <blockquote> <p> declared here </p> </blockquote> <blockquote> <p> error_category() noexcept; <sup> </sup></p> </blockquote> <p> 1 error generated. </p> <p> This is a regression from Boost 1.67. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13633 Trac 1.4.3 Rainer Deyke <rainerd@…> Thu, 12 Jul 2018 06:10:00 GMT attachment set https://svn.boost.org/trac10/ticket/13633 https://svn.boost.org/trac10/ticket/13633 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test.cpp</span> </li> </ul> <p> Minimal test file that demonstrates the problem </p> Ticket Rainer Deyke <rainerd@…> Thu, 12 Jul 2018 06:10:58 GMT attachment set https://svn.boost.org/trac10/ticket/13633 https://svn.boost.org/trac10/ticket/13633 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">error.txt</span> </li> </ul> <p> Actual command line and error message, original formatting </p> Ticket