This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Use compiled-in inversion lists
[perl5.git] / pp_sys.c
index 47c8a35..d4f1b9f 100644 (file)
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -2949,7 +2949,7 @@ S_try_amagic_ftest(pTHX_ char chr) {
     SV* const arg = TOPs;
 
     assert(chr != '?');
-    SvGETMAGIC(arg);
+    if (!(PL_op->op_private & OPpFT_STACKING)) SvGETMAGIC(arg);
 
     if (SvAMAGIC(TOPs))
     {