develooper Front page | perl.perl6.compiler | Postings from June 2012

[perl #113534] Internal error when trying to assign to an Int, Str or Num literal

From:
Moritz Lenz
Date:
June 6, 2012 12:37
Subject:
[perl #113534] Internal error when trying to assign to an Int, Str or Num literal
Message ID:
rt-3.6.HEAD-5009-1339011460-377.113534-82-0@perl.org
# New Ticket Created by  Moritz Lenz 
# Please include the string:  [perl #113534]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=113534 >


< moritz> r: 1 = 2
<+p6eval> rakudo 8c91e1: OUTPUT«===SORRY!===␤Method 'lvalue' not found
          for invocant of class 'Integer'␤»

With --ll-exception it seems to come from the PAST compiler:

Method 'lvalue' not found for invocant of class 'Integer'
current instr.: 'nqp;PAST;Compiler;bind_6model' pc 1202
(src/PAST/SixModelPASTExtensions.pir:308)
called from Sub 'nqp;PAST;Compiler;post_children' pc 2595
(compilers/pct/src/PAST/Compiler.pir:553)
called from Sub 'nqp;PAST;Compiler;as_post' pc 3172
(compilers/pct/src/PAST/Compiler.pir:773)

And that's the error message I'm looking for:

< moritz> r: 1.0 = 2
<+p6eval> rakudo 8c91e1: OUTPUT«Cannot assign to a non-container␤  in
          block <anon> at /tmp/4FS7Qw_leC:1␤␤»



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