fix intuit_start() with \G
authorDavid Mitchell <davem@iabyn.com>
Fri, 19 Jul 2013 01:08:56 +0000 (02:08 +0100)
committerDavid Mitchell <davem@iabyn.com>
Sun, 28 Jul 2013 09:33:37 +0000 (10:33 +0100)
commitcf44e600505da0c8da2d64849647ce2d39c46808
tree0d736bf3d2a0605ca6e29770e270282d43a9ddfc
parentf1fb9b037a1fe86e0ccdfbf27affa94647af2a37
fix intuit_start() with \G

Intuit assumed that any anchor, including \G, anchored at BOS or after \n.
This obviously isn't the case for \G, so exclude RXf_ANCH_GPOS from the
RXf_ANCH branch.

This has never been spotted before, since intuit used to be skipped when
\G was present.
regexec.c
t/re/pat.t