develooper Front page | perl.perl5.porters | Postings from February 2013

[perl #116823] Regexp::Grammars broken since 5.17.1

Thread Next
James E Keenan via RT
February 21, 2013 00:15
[perl #116823] Regexp::Grammars broken since 5.17.1
Message ID:
On Sun Feb 17 22:07:37 2013, wrote:
> This is a bug report for perl from,
> generated with the help of perlbug 1.39 running under perl 5.17.9.
> -----------------------------------------------------------------
> Regexp::Grammars fails all of its tests beginning with perl 5.17.1 due
> to
> the reworking of (?{...}) and (??{...}) in that version. The tests all
> fail
> with "Eval-group not allowed at runtime, use re 'eval'" and real code
> using
> Regexp::Grammars is expected to fail in the same way.
> Regexp::Grammars works by using overload::constant qr to bless all
> qr's in
> its scope into objects that have overloaded qq, which then does all
> kinds of
> string replacements on the pattern to turn it into one brimming with
> (??{...}) constructs. In previous versions of perl, this worked fine
> (possibly because all of the overload mojo wasn't considered
> "runtime"), but
> now it's broken.
> I'm not sure if this is to be considered a bug in perl, or if the
> *previous*
> behavior was a bug. If this is not a perl bug, how can
> Regexp::Grammars fix
> itself without requiring its users to pepper their code with use re
> 'eval'?
> Thanks,
> Andrew

We need to investigate the issues which Andrew has raised, as this
sounds like a regression and, hence, a blocker for 5.18.

via perlbug:  queue: perl5 status: new

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About