Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: 882351cd85e35e54eda68d31eacab1f9e389c692 https://github.com/Perl/perl5/commit/882351cd85e35e54eda68d31eacab1f9e389c692 Author: TAKAI Kousuke <62541129+t-...@users.noreply.github.com> Date: 2024-07-23 (Tue, 23 Jul 2024)
Changed paths: M t/op/sub_lval.t Log Message: ----------- t/op/sub_lval.t: Add tests for lvalue subs returning vec() or substr() and called twice in one expression Perl prior to v5.20 (at least v5.16.3, v5.18.4) fail to return correct value from subroutine returning vec() and substr() as lvalue but called multiple times in rvalue context of one expression: $ perl -wle 'my $x = "\002"; sub myvec1 :lvalue { vec($x, $_[0], 1) }' \ -e 'print myvec1(0); print myvec1(1); print myvec1(0) + myvec1(1)' 0 1 2 $ This apparently had been fixed in the commit 169504d53dbeb12d5171b2b44e7db3c2b81af314 (in 2013), but testcases for these symptoms doesn't seem to exist. Commit: 14c6cf250f94c71721a13c5ecf226384afed3235 https://github.com/Perl/perl5/commit/14c6cf250f94c71721a13c5ecf226384afed3235 Author: TAKAI Kousuke <62541129+t-...@users.noreply.github.com> Date: 2024-07-23 (Tue, 23 Jul 2024) Changed paths: M t/op/sub_lval.t Log Message: ----------- t/op/sub_lval.t: Fix grammar in comment Thanks to @jkeenan for pointing this out. Compare: https://github.com/Perl/perl5/compare/8c299c38076a...14c6cf250f94 To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications