id summary reporter owner description type status milestone component version severity resolution keywords cc 3734 xpressive sregex::compile fails to compile with gcc 4.1 anonymous Eric Niebler "I recently upgrade to boost 1.41 (was previously 1.40). After the upgrade, the following code does not compile: {{{ #include 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, 0l> boost::proto::detail::make_terminal(T&, boost::proto::exprns_::expr, 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, 0l> boost::proto::exprns_::expr, 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... }}}" Bugs closed Boost 1.42.0 xpressive Boost 1.41.0 Showstopper fixed