This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
PATCH: [perl #133767] Assertion failure
authorKarl Williamson <khw@cpan.org>
Sat, 16 Feb 2019 16:50:33 +0000 (09:50 -0700)
committerKarl Williamson <khw@cpan.org>
Sat, 16 Feb 2019 17:08:23 +0000 (10:08 -0700)
commit75451d8cc625c69a543f2bacf2312d369f8855ae
treef7815057cfa84cf832562b55c399286ace1c88ff
parentd547f0460acfc3402149384c6eff4f32c8370088
PATCH: [perl #133767] Assertion failure

The problem here is that a syntax error occurs and hence certain things
don't get done, but processing continues, as the error isn't checked for
until after the return of the function that found it.  The failing
assertion is checking that those certain things actually did get done.

There appear to be good reasons to defer the raising of the error until
then, so the simplest way to fix this is to generalize the code so that
the failing assertion doesn't happen.
pod/perldelta.pod
regcomp.c
t/re/reg_mesg.t