Subject: [Boost-bugs] [Boost C++ Libraries] #3734: xpressive sregex::compile fails to compile with gcc 4.1
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-12-08 15:58:25
#3734: xpressive sregex::compile fails to compile with gcc 4.1
--------------------------+-------------------------------------------------
Reporter: anonymous | Owner: eric_niebler
Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: None
Version: Boost 1.41.0 | Severity: Showstopper
Keywords: |
--------------------------+-------------------------------------------------
I recently upgrade to boost 1.41 (was previously 1.40). After the
upgrade, the following code does not compile:
{{{
#include <boost/xpressive/xpressive.hpp>
int main(int argc, char * argv[])
{
boost::xpressive::sregex rex =
boost::xpressive::sregex::compile("test");
return 0;
}
}}}
Here is the compiler error output:
{{{
...patience...
...patience...
...found 1219 targets...
...updating 6 targets...
gcc.compile.c++ build/gcc-4.1/debug/main.o
cc1plus: warnings being treated as errors
/home/acn/Develop/newtec_repository/boost-1.41.0-2434/gcc-4.1/include/boost/proto/expr.hpp:
In function âboost::proto::exprns_::expr<Tag,
boost::proto::argsns_::term<Arg0>, 0l>
boost::proto::detail::make_terminal(T&, boost::proto::exprns_::expr<Tag,
boost::proto::argsns_::term<Arg0>, 0l>*) [with T = int, Tag =
boost::proto::tag::terminal, Arg0 =
boost::xpressive::detail::mark_placeholder]â:
/home/acn/Develop/newtec_repository/boost-1.41.0-2434/gcc-4.1/include/boost/proto/expr.hpp:252:
instantiated from âstatic const boost::proto::exprns_::expr<Tag,
boost::proto::argsns_::term<T>, 0l> boost::proto::exprns_::expr<Tag,
boost::proto::argsns_::term<T>, 0l>::make(A0&) [with A0 = int, Tag =
boost::proto::tag::terminal, Arg0 =
boost::xpressive::detail::mark_placeholder]â
/home/acn/Develop/newtec_repository/boost-1.41.0-2434/gcc-4.1/include/boost/xpressive/regex_primitives.hpp:547:
instantiated from here
/home/acn/Develop/newtec_repository/boost-1.41.0-2434/gcc-4.1/include/boost/proto/expr.hpp:78:
warning: missing braces around initializer for
âboost::xpressive::detail::mark_placeholderâ
"g++-4.1" -ftemplate-depth-128 -O0 -fno-inline -Wall -pedantic
-Werror -g -fPIC -Wno-long-long
-I"/home/acn/Develop/newtec_repository/boost-1.41.0-2434/gcc-4.1/include"
-I"build/gcc-4.1/debug" -c -o "build/gcc-4.1/debug/main.o"
"/home/acn/Develop/eclipse_workspace/trunk/sandbox/concept/src/cpp/main.cpp"
...failed gcc.compile.c++ build/gcc-4.1/debug/main.o...
...failed updating 1 target...
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3734> 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-02-16 18:50:02 UTC