Remove and update aCC/HPUX fixes.

Fix regex bug report: some repeats match when they should not.
Added test case.


[SVN r35262]
This commit is contained in:
John Maddock
2006-09-21 18:30:27 +00:00
parent 9fc486658f
commit 67128fa65f
5 changed files with 13 additions and 11 deletions

View File

@ -275,13 +275,11 @@ bool perl_matcher<BidiIterator, Allocator, traits>::match_rep()
#pragma warning(disable:4127 4244)
#endif
const re_repeat* rep = static_cast<const re_repeat*>(pstate);
if(next_count->get_id() != rep->id)
{
// we're moving to a different repeat from the last
// one, so set up a counter object and recurse:
repeater_count<BidiIterator> r(rep->id, &next_count, position);
return match_rep();
}
//
// Always copy the repeat count, so that the state is restored
// when we exit this scope:
//
repeater_count<BidiIterator> r(rep->id, &next_count, position);
//
// If we've had at least one repeat already, and the last one
// matched the NULL string then set the repeat count to