summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-08-02 18:18:37 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-08-02 18:18:37 +0000
commit11fa937b2766784f0f812687a7f81dd3761e605f (patch)
tree2c4c9ff107861f412372c6d1cb8271c1ddc67168 /op.c
parent412582ad0f710a91b1d05cd009c4bda518bddde8 (diff)
downloadperl-11fa937b2766784f0f812687a7f81dd3761e605f.tar.gz
optimizations could sometimes bypass bareword check
p4raw-id: //depot/perl@3897
Diffstat (limited to 'op.c')
-rw-r--r--op.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/op.c b/op.c
index 313cce7dc5..9f92232912 100644
--- a/op.c
+++ b/op.c
@@ -1890,7 +1890,8 @@ Perl_fold_constants(pTHX_ register OP *o)
goto nope; /* Don't try to run w/ errors */
for (curop = LINKLIST(o); curop != o; curop = LINKLIST(curop)) {
- if (curop->op_type != OP_CONST &&
+ if ((curop->op_type != OP_CONST ||
+ (curop->op_private & OPpCONST_BARE)) &&
curop->op_type != OP_LIST &&
curop->op_type != OP_SCALAR &&
curop->op_type != OP_NULL &&