This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make prototype("CORE::CORE") die once more.
authorFather Chrysostomos <sprout@cpan.org>
Tue, 9 Aug 2011 05:15:52 +0000 (22:15 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 9 Aug 2011 05:15:52 +0000 (22:15 -0700)
commitd673215e89e48f1d926b059d6b44b3b8a681d538
tree74caec402dfc9849baa99c00f8f7db4381f74b56
parentea31ed6697f4ec8ba9adbd2e965d8912bb223307
Make prototype("CORE::CORE") die once more.

Commit b8c38f0a2a65 accidentally made prototype("CORE::CORE") return
undef instead of dying. This is the only case that reached the line
with the ‘Should not happen...’ comment.

This commit changes it to be handled earlier and also adds an asser-
tion to make sure that unreachable code really is unreachable (which
it should be now, I think, I hope...).
op.c
t/op/cproto.t