From 2e8a6c53cfdc6b1782b20f4b56eab80f0546bbb3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Salvador=20Fandi=C3=B1o?= Date: Wed, 15 Jun 2005 01:27:00 -0700 Subject: [PATCH] Subs with builtin attributes shouldn't be made constant Subject: Re: [perl #36297] builtin attrs on subrutine declarations Message-ID: <20050615152700.96320.qmail@web52702.mail.yahoo.com> p4raw-id: //depot/perl@24865 --- op.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op.c b/op.c index 7b4f477..814b07d 100644 --- a/op.c +++ b/op.c @@ -4295,7 +4295,7 @@ Perl_newATTRSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block) } #endif - if (!block || !ps || *ps || attrs) + if (!block || !ps || *ps || attrs || (CvFLAGS(PL_compcv) & CVf_BUILTIN_ATTRS)) const_sv = Nullsv; else const_sv = op_const_sv(block, Nullcv); -- 1.8.3.1