Re: [Boost-bugs] [Boost C++ Libraries] #11874: Compilation error with GCC4.6 in C++11 mode

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11874: Compilation error with GCC4.6 in C++11 mode
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-07-12 09:31:43


#11874: Compilation error with GCC4.6 in C++11 mode
-------------------------------+-----------------------------------------
  Reporter: Antony Polukhin | Owner: Emil Dotchevski
      Type: Bugs | Status: reopened
 Milestone: To Be Determined | Component: exception
   Version: Boost 1.64.0 | Severity: Regression
Resolution: | Keywords: c++11 exception type_traits
-------------------------------+-----------------------------------------

Comment (by Richard Hazlewood <boost@…>):

 Gah...this time I'll copy-paste the genuine error, and not my test code:
 {{{
 gcc.compile.c++ bin.v2/libs/context/build/gcc-std0x/release/link-static
 /threading-multi/posix/stack_traits.o

     "g++" -ftemplate-depth-128 -std=c++0x -O3 -finline-functions -Wno-
 inline -Wall -pthread -m64 -DBOOST_ALL_NO_LIB=1
 -DBOOST_CHRONO_STATIC_LINK=1 -DBOOST_CONTEXT_SOURCE
 -DBOOST_DISABLE_ASSERTS -DBOOST_SYSTEM_NO_DEPRECATED
 -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_THREAD_BUILD_LIB=1
 -DBOOST_THREAD_POSIX -DBOOST_THREAD_USE_LIB=1 -DNDEBUG -I"." -c -o
 "bin.v2/libs/context/build/gcc-std0x/release/link-static/threading-
 multi/posix/stack_traits.o" "libs/context/src/posix/stack_traits.cpp"

 In file included from ./boost/exception/detail/exception_ptr.hpp:20:0,
                  from ./boost/exception_ptr.hpp:9,
                  from ./boost/thread/exceptional_ptr.hpp:10,
                  from ./boost/thread/future.hpp:25,
                  from ./boost/thread.hpp:24,
                  from libs/context/src/posix/stack_traits.cpp:24:
 ./boost/exception/info.hpp: In instantiation of
 'boost::error_info<boost::tag_original_exception_type, const
 std::type_info*>':
 ./boost/exception/detail/exception_ptr.hpp:95:32: instantiated from here
 ./boost/exception/info.hpp:66:5: error: 'class
 boost::error_info<boost::tag_original_exception_type, const
 std::type_info*>' has no member named 'value_'
 ...failed gcc.compile.c++ bin.v2/libs/context/build/gcc-std0x/release
 /link-static/threading-multi/posix/stack_traits.o...
 gcc.compile.c++ bin.v2/libs/thread/build/gcc-std0x/release/link-static
 /threading-multi/pthread/thread.o

     "g++" -ftemplate-depth-128 -std=c++0x -O3 -finline-functions -Wno-
 inline -Wall -pedantic -pthread -m64 -Wextra -Wno-long-long -Wno-unused-
 parameter -Wunused-function -pedantic -DBOOST_ALL_NO_LIB=1
 -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_THREAD_BUILD_LIB=1
 -DBOOST_THREAD_DONT_USE_CHRONO -DBOOST_THREAD_POSIX -DNDEBUG -I"." -c -o
 "bin.v2/libs/thread/build/gcc-std0x/release/link-static/threading-
 multi/pthread/thread.o" "libs/thread/src/pthread/thread.cpp"

 In file included from ./boost/exception/detail/exception_ptr.hpp:20:0,
                  from ./boost/exception_ptr.hpp:9,
                  from ./boost/thread/exceptional_ptr.hpp:10,
                  from ./boost/thread/future.hpp:25,
                  from libs/thread/src/pthread/thread.cpp:19:
 ./boost/exception/info.hpp: In instantiation of
 'boost::error_info<boost::tag_original_exception_type, const
 std::type_info*>':
 ./boost/exception/detail/exception_ptr.hpp:95:32: instantiated from here
 ./boost/exception/info.hpp:66:5: error: 'class
 boost::error_info<boost::tag_original_exception_type, const
 std::type_info*>' has no member named 'value_'
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac10/boost/ticket/11874#comment:29>
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 : 2017-07-12 09:37:23 UTC