Boost logo

Boost :

From: John Maddock (john_maddock_at_[hidden])
Date: 2002-07-13 05:23:06


> That didn't help. instances.hpp:108 is this:
>
> template
> reg_expression<BOOST_REGEX_CHAR_T>::~reg_expression<BOOST_REGEX_CHAR_T>();
>
> Changing it to this solves that problem:
>
> template reg_expression<BOOST_REGEX_CHAR_T>::~reg_expression();
>
> It seems that the compiler wants you to use the same kind of syntax as for
a
> constructor, without the repeated template spec. Maybe that will require
yet
> another BOOST_NO_WHATEVER macro. Or

Thats a bug, it's fixed in the cvs.

> Now the next problem that compiler crashes on is this:
>
> g++ -o
generic/boost_regex/cregex.o -c -O2 -I../../../ -march=i686 -mieee-fp
> -DBOOST_USER_CONFIG="<boost/config/egcs-1.1.2-config.hpp>"
../src/cregex.cpp
> ../../../boost/regex/detail/regex_match.hpp: In function `bool
> query_match_aux<const char *,
::boost::detail::::boost::detail::allocator<char>,
> char, ::boost::::boost::regex_traits<char>,
> ::boost::detail::::boost::detail::allocator<char>>(const char *, const
char *,
> class ::boost::::boost::match_results<const char
> *,::boost::detail::::boost::detail::allocator<char> > &, const class
>
::boost::::boost::reg_expression<char,::boost::::boost::regex_traits<char>,:
:boost::detail::::boost::detail::allocator<char>
> > &, unsigned int, class
::boost::re_detail::::boost::re_detail::_priv_match_data<const char
*,::boost::detail::::boost::detail::allocator<char> > &, const char **)':
> ../../../boost/regex/detail/regex_match.hpp:1641: instantiated from
> `regex_match<const char *,
::boost::detail::::boost::detail::allocator<char>,
> char, ::boost::::boost::regex_traits<char>,
> ::boost::detail::::boost::detail::allocator<char>>(const char *, const
char *,
> ::boost::::boost::match_results<const char
> *,::boost::detail::::boost::detail::allocator<char> > &, const
>
::boost::::boost::reg_expression<char,::boost::::boost::regex_traits<char>,:
:boost::detail::::boost::detail::allocator<char>
> > &, unsigned int)'
> ../src/cregex.cpp:204: instantiated from here
> ../../../boost/regex/detail/regex_match.hpp:490: Internal compiler error.
> ../../../boost/regex/detail/regex_match.hpp:490: Please submit a full bug
report
> to `egcs-bugs_at_[hidden]'.
> ../../../boost/regex/detail/regex_match.hpp:490: See
> <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.
>
> cregex.cpp:204 is this:
>
> if(regex_match(p, end, pdata->m, pdata->e, flags))

That may be a dead end then, sorry, unless you can see a way to rephrase the
offending code so that the compiler is happy...

John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/index.htm


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk