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

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

Thread Next
From:
James E Keenan via RT
Date:
February 21, 2013 00:15
Subject:
[perl #116823] Regexp::Grammars broken since 5.17.1
Message ID:
rt-3.6.HEAD-31961-1361405729-403.116823-15-0@perl.org
On Sun Feb 17 22:07:37 2013, andrew@cleverdomain.org wrote:
> This is a bug report for perl from andrew@cleverdomain.org,
> 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
https://rt.perl.org:443/rt3/Ticket/Display.html?id=116823

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About