This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove unwarranted assertion in Perl_newATTRSUB_x()
authorAaron Crane <arc@cpan.org>
Sun, 3 Jan 2016 14:29:43 +0000 (14:29 +0000)
committerAaron Crane <arc@cpan.org>
Sun, 3 Jan 2016 15:29:24 +0000 (15:29 +0000)
commita934a4a7d4fa99d522e169b921286755a0f8d248
tree4f4d94470873c2185769df3dfac7c3fb9e58ad91
parent83677dc5596295a5b5095063d96f95de3735933a
Remove unwarranted assertion in Perl_newATTRSUB_x()

RT #126845: if a stub subroutine definition with a prototype has been seen,
then any subsequent stub (or definition) of the same subroutine with an
attribute was causing an assertion failure because of a null pointer.

This assertion was added in 2eaf799e74b14dc77b90d5484a3fd4ceac12b46a, which
itself would already have triggered this assertion failure, even though all
subsequent uses of the pointer in question were guarded with non-null
conditions. So merely deleting the assertion is the right thing.
op.c
t/op/sub.t