[perl #129801] [LTA] Nesting LEAVE and ENTER phasers says "Cannot reference undeclared local 'enter_result__1"

[email protected] ("Zoffix Znet via RT")
Newsgroups perl.perl6.compiler
Message-ID <[email protected]>
On Mon, 03 Oct 2016 11:59:18 -0700, [email protected] wrote:
> I tried to time a subroutine as follows:
> 
>     ➜  sub a { LEAVE say now - ENTER now;  sleep 1 };
>     ➜  a
>     ===SORRY!===
>     Cannot reference undeclared local 'enter_result__1
> 
> Not sure if nesting phasers like this would be reasonable to support,
> but even if not, the error message should explain what's going on in
> user-friendly terms and not leak an internal variable name.


Thank you for the report. This is now fixed.

Fix:  https://github.com/rakudo/rakudo/commit/58de239cc90bb3a
Test: https://github.com/perl6/roast/commit/8e4f5edff7b879f9f
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.