develooper Front page | perl.perl5.porters | Postings from October 2014

[perl #123057] Bleadperl v5.21.4-409-gef7999f breaks UNIFIEDSW/Finance-BankVal-UK-0.4.tar.gz

Thread Previous | Thread Next
From:
Father Chrysostomos via RT
Date:
October 26, 2014 15:13
Subject:
[perl #123057] Bleadperl v5.21.4-409-gef7999f breaks UNIFIEDSW/Finance-BankVal-UK-0.4.tar.gz
Message ID:
rt-4.0.18-29605-1414336394-1353.123057-15-0@perl.org
On Sun Oct 26 07:24:32 2014, jkeenan wrote:
> Confirmed.  ef7999f causes a compilation failure in a situation where
> 5.20.1 does not.
> 
> I have translated the code in the CPAN distribution which suffered the
> failure into a patch to t/op/chop.t.  blead will experience a syntax
> error and compilation failure when you try to run that test file.

Thank you for the test case.  You’ve saved me time.  It turns out this is an old bug in the optimisation, which I have ended up extending to more cases:

$ perl5.8.7 -e '(@a = split//,$_)=1' # fine
$ perl5.8.7 -e '(@a = split//,$x)=1'
Can't modify split in list assignment at -e line 1, at EOF
Execution of -e aborted due to compilation errors.

Judging by the source code, it probably goes back to perl 3.0.

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=123057

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About