Copy hints from tied hh to inner compile scopes
authorFather Chrysostomos <sprout@cpan.org>
Wed, 21 Dec 2011 20:29:12 +0000 (12:29 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 21 Dec 2011 20:29:12 +0000 (12:29 -0800)
commitcb1f05e8fe9a1c7a7e2de8048f1404df951311b0
tree1e0379edd15719969f7492938c3b792f7f95824b
parentfd20f1ec3b10f199361e00cffbe2406c485843fb
Copy hints from tied hh to inner compile scopes

Entries from a tied %^H were not being copied to inner compile-time
scopes, resulting in %^H appearing empty in BEGIN blocks, even
though the underlying he chain *was* being propagated properly (so
(caller)[10] at run time still worked.

I was surprised that, in writing tests for this, I produced another
crash.  I thought I had fixed them with 95cf23680 and 7ef9d42ce.  It
turns out that pp_helem doesn’t support hashes with null values.
(That’s a separate bug that needs fixing, since the XS API allows for
them.)  For now, cloning the hh properly stops pp_helem from getting a
null value.
hv.c
t/comp/hints.t