Fix assertion failure with $float = $regexp assignment
authorFather Chrysostomos <sprout@cpan.org>
Sat, 27 Oct 2012 05:59:10 +0000 (22:59 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 28 Oct 2012 09:04:56 +0000 (02:04 -0700)
commit12c45b2548283866d4ee5be5cea6c1cd072c3be9
treee5e00bc589d459f0f0aead18d35ca7024f40f772
parent093085a8e359c2a612a8cc8f1d813f9098f45bd8
Fix assertion failure with $float = $regexp assignment

Commit b9ad13acb3 caused case SVt_REGEXP in sv_upgrade to fall
through to the assertions under case SVt_PVIV that are not relevant to
SVt_REGEXP.

We should really be setting the FAKE flag when actually making a sca-
lar a regexp, rather than in sv_upgrade.  (I will probably need it
there in future commits, too, since it really should be possible for
SVt_PVLVs to hold regular expressions.)
regcomp.c
sv.c
t/op/qr.t