New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
builtin attrs on subrutine declarations #7972
Comments
From @salvaCreated by @salvaBuiltin attributes are parsed but ignored on subroutine declarations, $ perl -e 'sub foo : lvalue ; foo = 7; sub foo : lvalue { $a }' The patch attached solves the problem. Cheers, - Salvador. Perl Info
|
From @rgsSalvador "FandiXXo" (via RT) wrote:
Thanks, applied as #24851 to bleadperl. |
The RT System itself - Status changed from 'new' to 'open' |
@rgs - Status changed from 'open' to 'resolved' |
From @salvajust another small patch for a related bug: subs with builtin $ ./perl -e 'sub foo () : assertion { 7 } ; use assertions "1"; print Inline Patch--- ../perl-current/op.c 2005-06-15 16:08:47.000000000 +0100
+++ op.c 2005-06-15 15:30:58.000000000 +0100
@@ -4295,7 +4295,7 @@
}
#endif
- if (!block || !ps || *ps || attrs)
+ if (!block || !ps || *ps || attrs || (CvFLAGS(PL_compcv) &
--- Rafael Garcia-Suarez via RT <perlbug-followup@perl.org> wrote:
__________________________________________________ |
From @rgsSalvador "FandiXo" wrote:
Thanks, applied as change #24865 to bleadperl.
|
Migrated from rt.perl.org#36297 (status was 'resolved')
Searchable as RT36297$
The text was updated successfully, but these errors were encountered: