Subject: [Boost-bugs] [Boost C++ Libraries] #13525: Boost Test 1.67.0: Compilation error with GCC 4.6.3
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-04-16 19:24:15
#13525: Boost Test 1.67.0: Compilation error with GCC 4.6.3
------------------------------+-------------------------------
Reporter: kratz00@⦠| Owner: Gennadiy Rozental
Type: Bugs | Status: new
Milestone: To Be Determined | Component: test
Version: Boost 1.67.0 | Severity: Showstopper
Keywords: |
------------------------------+-------------------------------
I was just testing 1.67.0 and ran into the following issue (1.66.0 works).
Used compiler: g++ (Ubuntu/Linaro?? 4.6.3-1ubuntu5) 4.6.3
Boost build commands:
{{{
./bootstrap.sh --with-
libraries=filesystem,exception,program_options,test,signals --prefix=/usr
./b2 link=shared runtime-link=shared optimization=speed variant=release
cxxflags="-std=c++0x" install
}}}
The error message:
{{{
gcc.compile.c++ bin.v2/libs/test/build/gcc-4.6/release/link-static
/threading-multi/test_main.o
In file included from ./boost/test/unit_test_suite.hpp:18:0,
from ./boost/test/impl/test_main.ipp:19,
from libs/test/src/test_main.cpp:13:
./boost/test/tree/test_case_template.hpp: In constructor
âboost::unit_test::ut_detail::template_test_case_gen<TestCaseTemplate,
std::tuple<_Elements ...>
>::template_test_case_gen(boost::unit_test::const_string,
boost::unit_test::const_string, std::size_t)â:
./boost/test/tree/test_case_template.hpp:172:15: error: expected nested-
name-specifier before âtuple_tâ
./boost/test/tree/test_case_template.hpp:172:15: error: âtuple_tâ has not
been declared
./boost/test/tree/test_case_template.hpp:172:23: error: expected â;â
before â=â token
./boost/test/tree/test_case_template.hpp:172:23: error: expected primary-
expression before â=â token
./boost/test/tree/test_case_template.hpp:172:60: error: expected primary-
expression before â;â token
./boost/test/tree/test_case_template.hpp:173:15: error: expected nested-
name-specifier before âthis_typeâ
./boost/test/tree/test_case_template.hpp:173:15: error: âthis_typeâ has
not been declared
./boost/test/tree/test_case_template.hpp:173:25: error: expected â;â
before â=â token
./boost/test/tree/test_case_template.hpp:173:25: error: expected primary-
expression before â=â token
./boost/test/tree/test_case_template.hpp:173:68: error: âtuple_tâ was not
declared in this scope
./boost/test/tree/test_case_template.hpp:173:76: error: template argument
2 is invalid
./boost/test/tree/test_case_template.hpp:174:15: error: expected nested-
name-specifier before âsingle_test_genâ
./boost/test/tree/test_case_template.hpp:174:15: error: âsingle_test_genâ
has not been declared
./boost/test/tree/test_case_template.hpp:174:31: error: expected â;â
before â=â token
./boost/test/tree/test_case_template.hpp:174:31: error: expected primary-
expression before â=â token
./boost/test/tree/test_case_template.hpp:174:59: error: âthis_typeâ was
not declared in this scope
./boost/test/tree/test_case_template.hpp:174:86: error: template argument
1 is invalid
./boost/test/tree/test_case_template.hpp:176:9: error: âsingle_test_genâ
was not declared in this scope
./boost/test/tree/test_case_template.hpp:176:25: error: expected â;â
before âopâ
./boost/test/tree/test_case_template.hpp:178:24: error: the value of
âtuple_tâ is not usable in a constant expression
./boost/test/tree/test_case_template.hpp:173:68: note: âtuple_tâ was not
declared âconstexprâ
./boost/test/tree/test_case_template.hpp:178:33: error: âopâ was not
declared in this scope
./boost/test/tree/test_case_template.hpp:178:33: note: suggested
alternative:
./boost/test/tools/assertion.hpp:65:14: note:
âboost::test_tools::assertion::opâ
"g++" -m32 -pthread -O3 -finline-functions -Wno-inline -Wall
-pedantic -march=i686 -std=c++0x -DBOOST_ALL_NO_LIB=1
-DBOOST_CHRONO_STATIC_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED
-DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_TIMER_STATIC_LINK=1 -DNDEBUG -I"."
-c -o "bin.v2/libs/test/build/gcc-4.6/release/link-static/threading-
multi/test_main.o" "libs/test/src/test_main.cpp"
...failed gcc.compile.c++ bin.v2/libs/test/build/gcc-4.6/release/link-
static/threading-multi/test_main.o...
}}}
-- Ticket URL: <https://svn.boost.org/trac10/ticket/13525> 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-04-16 19:30:56 UTC