Boost.Regex compile error with gcc 4.6
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
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
<snip/>
It compiles fine with gcc 4.5.
Is this an issue with boost or gcc? Should I report it as a bug?
~~~~~~~~~
I'm afraid I don't understand why it's giving that error at all, 4.6 isn't a released compiler yet right?
Yes, that is right, but we could add an bug report to GCC to have that fixed before it will be released. Of course only if that is really an GCC and not an boost bug.
Anyone else have any ideas?
Thanks, John.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Mit freundlichen Grüßen, With best regards, Wolfgang Forstmeier Homines sumus nun dei (Petronius) ------------------------------------------- mailto:wolfgang.forstmeier@gmail.com
I'm afraid I don't understand why it's giving that error at all, 4.6 isn't a released compiler yet right?
Yes, that is right, but we could add an bug report to GCC to have that fixed before it will be released. Of course only if that is really an GCC and not an boost bug.
Nod. If you can reproduce it, can you file a GCC bug report along with the preprocessed source that triggers the error? If it is our fault, or some subtle change in the std, hopefully they might be able to tell us why.... at the very least the error message is misleading as the class that the compiler complains about being incomplete is most definitely complete! John.
On 1:59 PM, John Maddock wrote:
boost/regex.hpp fails to compile with gcc 4.6, giving the following errors:
[...]
It compiles fine with gcc 4.5.
Is this an issue with boost or gcc? Should I report it as a bug?
~~~~~~~~~
I'm afraid I don't understand why it's giving that error at all, 4.6 isn't a released compiler yet right?
As a point of reference, the "Win7-x64 ..." trunk regression test is gcc 4.6 (MinGW-x64), and passes all regex tests. I have a handful of patches to make thread work, but they shouldn't affect regex. Not sure about its release status.
participants (4)
-
Jim Bell
-
John Maddock
-
Nathan Ridge
-
Wolfgang Forstmeier