[Boost-bugs] [Boost C++ Libraries] #13633: boost/system/error_code.hpp fails to compile on clang-3.6 in gnu++14 mode due to invalid constexpr

Subject: [Boost-bugs] [Boost C++ Libraries] #13633: boost/system/error_code.hpp fails to compile on clang-3.6 in gnu++14 mode due to invalid constexpr
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-07-12 06:08:28


#13633: boost/system/error_code.hpp fails to compile on clang-3.6 in gnu++14 mode
due to invalid constexpr
--------------------------------------+-------------------------
 Reporter: Rainer Deyke <rainerd@…> | Owner: Beman Dawes
     Type: Bugs | Status: new
Milestone: Boost 1.68.0 | Component: system
  Version: Boost Release Branch | Severity: Showstopper
 Keywords: constexpr |
--------------------------------------+-------------------------
 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:

 rainer_at_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
       never produces a constant expression [-Winvalid-constexpr]
         BOOST_SYSTEM_CONSTEXPR explicit std_category(
 boost::system::err...
                                         ^
 boost_1_68_0/boost/system/error_code.hpp:226:41: note: non-constexpr
 constructor
       'error_category' cannot be used in a constant expression
 /usr/bin/../lib/gcc/x86_64-linux-
 gnu/4.8/../../../../include/c++/4.8/system_error:69:5: note:
       declared here
     error_category() noexcept;
     ^
 1 error generated.

 This is a regression from Boost 1.67.

-- 
Ticket URL: <https://svn.boost.org/trac10/ticket/13633>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2018-07-12 06:13:28 UTC