Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: 358f0a0322a436ae4879f67048e31c372b23bfca
https://github.com/Perl/perl5/commit/358f0a0322a436ae4879f67048e31c372b23bfca
Author: Paul "LeoNerd" Evans <[email protected]>
Date: 2026-08-25 (Tue, 25 Aug 2026)
Changed paths:
M class.c
M embed.fnc
M embed.h
M perly.act
M perly.h
M perly.tab
M perly.y
M proto.h
M t/lib/warnings/class
Log Message:
-----------
class.c: delay declaring `$self` until after block_start()
Previously, the `$self` variable was declared so early that pad.c
thought it was in an outer scope, and thus didn't warn of shadowing. By
waiting until after the `remember` grammar token in `perl.y` we can
ensure that the shadow warning still happens for duplicate declarations.
Fixes https://github.com/Perl/perl5/issues/24610
To unsubscribe from these emails, change your notification settings at
https://github.com/Perl/perl5/settings/notifications