This was broken in v5.21.5-289-g12cea2f. We were trying to check the
kid op of an ex-const, but an ex-const has no children.
}
} elsif ($lopname =~ /^(?:gv|rv2)([ash])v$/
&& $loppriv & OPpOUR_INTRO
}
} elsif ($lopname =~ /^(?:gv|rv2)([ash])v$/
&& $loppriv & OPpOUR_INTRO
- or $lopname eq "null" && $lop->first->name eq "gvsv"
+ or $lopname eq "null" && class($lop) eq 'UNOP'
+ && $lop->first->name eq "gvsv"
&& $lop->first->private & OPpOUR_INTRO) { # our()
my $newlocal = "local " x !!($loppriv & OPpLVAL_INTRO) . "our";
($local = "", last)
&& $lop->first->private & OPpOUR_INTRO) { # our()
my $newlocal = "local " x !!($loppriv & OPpLVAL_INTRO) . "our";
($local = "", last)
+# List of constants in void context
+# CONTEXT no warnings;
+(1,2,3);
+0;
+>>>>
+'???', '???', '???';
+0;
+####
# Lexical and simple arithmetic
my $test;
++$test and $test /= 2;
# Lexical and simple arithmetic
my $test;
++$test and $test /= 2;