]> git.vpit.fr Git - perl/modules/autovivification.git/commitdiff
Make sure gv ops seen by multideref are cleaned from the global table
authorVincent Pit <vince@profvince.com>
Thu, 14 May 2015 15:38:01 +0000 (17:38 +0200)
committerVincent Pit <vince@profvince.com>
Thu, 14 May 2015 15:44:30 +0000 (17:44 +0200)
Since they are created in the peephole optimizer, multideref ops have to
rely on getting the lexical scope hints from their first kid. It might have
happened that the kid of one such op was a gv op compiled in the scope of
the pragma, and was then reused outside of the scope of the pragma again
as the first kid of another multideref op. In that case, the multideref op
was wrongly replaced. This is solved by always clearing gv ops entries in
ck_rv2xv() from the global op map.

This solves random failures of test 12 from t/40-scope.t.


No differences found