Opened 13 years ago
Closed 13 years ago
#3734 closed Bugs (fixed)
xpressive sregex::compile fails to compile with gcc 4.1
Reported by: | anonymous | Owned by: | Eric Niebler |
---|---|---|---|
Milestone: | Boost 1.42.0 | Component: | xpressive |
Version: | Boost 1.41.0 | Severity: | Showstopper |
Keywords: | Cc: |
Description
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...
Change History (3)
comment:1 by , 13 years ago
Component: | None → xpressive |
---|
comment:2 by , 13 years ago
comment:3 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [58323]) eliminate gcc warning in mark_tag constructor, code reorg, references #3734