Boost logo

Boost Users :

Subject: [Boost-users] Boost.Regex compile error with gcc 4.6
From: Nathan Ridge (zeratul976_at_[hidden])
Date: 2011-01-09 17:48:45


Hello,

boost/regex.hpp fails to compile with gcc 4.6, giving the following errors:

In file included from /lib/boost/boost/regex/v4/perl_matcher.hpp:578:0,
                 from /lib/boost/boost/regex/v4/regex.hpp:88,
                 from /lib/boost/boost/regex.hpp:31,
                 from test.cpp:1:
/lib/boost/boost/regex/v4/perl_matcher_non_recursive.hpp: In member function ‘bool boost::re_detail::perl_matcher<BidiIterator, Allocator, traits>::unwind_short_set_repeat(bool)’:
/lib/boost/boost/regex/v4/perl_matcher_non_recursive.hpp:1394:85: error: invalid use of incomplete type ‘const struct boost::regex_traits_wrapper<traits>’
/lib/boost/boost/regex/v4/regex_traits.hpp:163:8: error: declaration of ‘const struct boost::regex_traits_wrapper<traits>’
/lib/boost/boost/regex/v4/perl_matcher_non_recursive.hpp:1394:85: error: invalid type argument of unary ‘*’ (have ‘BidiIterator’)

It compiles fine with gcc 4.5.

Is this an issue with boost or gcc? Should I report it as a bug?

Thanks,
Nate.
                                               


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net