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

[perl #122995] Perl 5.20 regression: Hang when compiling while(1) in a list

Thread Previous
From:
Father Chrysostomos
Date:
October 16, 2014 22:53
Subject:
[perl #122995] Perl 5.20 regression: Hang when compiling while(1) in a list
Message ID:
rt-4.0.18-2531-1413499996-1582.122995-75-0@perl.org
# New Ticket Created by  Father Chrysostomos 
# Please include the string:  [perl #122995]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=122995 >


This hangs at compile time:

$ perl5.20.1  -e 'sub foo { () = ($a, my $b, ($c, do { while(1) {} })) }'
^C

I found this by reading the source code.  (C.f. commit 71a29c3c6e
which fixed a similar bug long ago.)

I’ll have a fix ready soon.

-- 

Father Chrysostomos


Thread Previous


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