Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable declaration with adverb throws internal error #3233

Closed
p6rt opened this issue Sep 12, 2013 · 6 comments
Closed

Variable declaration with adverb throws internal error #3233

p6rt opened this issue Sep 12, 2013 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Sep 12, 2013

Migrated from rt.perl.org#119763 (status was 'resolved')

Searchable as RT119763$

@p6rt
Copy link
Author

p6rt commented Sep 12, 2013

From @moritz

moritz r​: my $s :a
camelia rakudo 69c3cc​: OUTPUT«===SORRY!===␤invoke() not implemented in
class 'QAST​::Op'␤»

$ ./perl6 --ll-exception -e 'my $s :a'
invoke() not implemented in class 'QAST​::Op'
current instr.​: '' pc 18914 (src/gen/perl6-actions.pir​:7487)
(src/Perl6/Actions.nqp​:2112)
called from Sub '' pc 18869 (src/gen/perl6-actions.pir​:7465)
(src/Perl6/Actions.nqp​:2103)
called from Sub '' pc 18567 (src/gen/perl6-actions.pir​:7342)
(src/Perl6/Actions.nqp​:2094)
called from Sub 'declare_variable' pc 15378
(src/gen/perl6-actions.pir​:6101) (src/Perl6/Actions.nqp​:1985)
called from Sub '' pc 93493 (src/gen/perl6-actions.pir​:37022)
(src/Perl6/Actions.nqp​:1976)
called from Sub 'variable_declarator' pc 92797
(src/gen/perl6-actions.pir​:36745) (src/Perl6/Actions.nqp​:1964)
called from Sub '!reduce' pc 11559 (src/stage2/QRegex.pir​:4748)
(src/stage2/QRegex.nqp​:667)
called from Sub '!cursor_pass' pc 11043 (src/stage2/QRegex.pir​:4531)
(src/stage2/QRegex.nqp​:631)
called from Sub 'variable_declarator' pc 165463
(src/gen/perl6-grammar.pir​:57856) (src/Perl6/Grammar.nqp​:2129)
called from Sub 'declarator' pc 157894 (src/gen/perl6-grammar.pir​:55523)
(src/Perl6/Grammar.nqp​:2050)
called from Sub 'scoped' pc 163258 (src/gen/perl6-grammar.pir​:57246)
(src/Perl6/Grammar.nqp​:2102)
called from Sub 'scope_declarator​:sym<my>' pc 160855
(src/gen/perl6-grammar.pir​:56433) (src/Perl6/Grammar.nqp​:2087)
called from Sub '!protoregex' pc 11922 (src/stage2/QRegex.pir​:4900)
(src/stage2/QRegex.nqp​:699)
called from Sub 'scope_declarator' pc 160682
(src/gen/perl6-grammar.pir​:56370) (src/Perl6/Grammar.nqp​:2086)
called from Sub 'term​:sym<scope_declarator>' pc 103469
(src/gen/perl6-grammar.pir​:36529) (src/Perl6/Grammar.nqp​:1415)
called from Sub '!protoregex' pc 11922 (src/stage2/QRegex.pir​:4900)
(src/stage2/QRegex.nqp​:699)
called from Sub 'term' pc 200696 (src/gen/perl6-grammar.pir​:68943)
(src/Perl6/Grammar.nqp​:2612)
called from Sub 'termish' pc 242151 (src/gen/perl6-grammar.pir​:83319)
(src/Perl6/Grammar.nqp​:3040)
called from Sub 'EXPR' pc 17224 (src/stage2/gen/NQPHLL.pir​:6315)
(src/stage2/gen/NQPHLL.nqp​:430)
called from Sub 'EXPR' pc 243847 (src/gen/perl6-grammar.pir​:83938)
(src/Perl6/Grammar.nqp​:3075)
called from Sub 'statement' pc 69478 (src/gen/perl6-grammar.pir​:25283)
(src/Perl6/Grammar.nqp​:1005)
called from Sub 'statementlist' pc 66962
(src/gen/perl6-grammar.pir​:24466) (src/Perl6/Grammar.nqp​:972)
called from Sub 'comp_unit' pc 59754 (src/gen/perl6-grammar.pir​:21515)
(src/Perl6/Grammar.nqp​:763)
called from Sub 'TOP' pc 22820 (src/gen/perl6-grammar.pir​:8678)
(src/Perl6/Grammar.nqp​:340)
called from Sub 'parse' pc 19856 (src/stage2/QRegex.pir​:7997)
(src/stage2/QRegex.nqp​:1192)
called from Sub 'parse' pc 33575 (src/stage2/gen/NQPHLL.pir​:13245)
(src/stage2/gen/NQPHLL.nqp​:1409)
called from Sub '' pc 32960 (src/stage2/gen/NQPHLL.pir​:13014)
(src/stage2/gen/NQPHLL.nqp​:1364)
called from Sub 'compile' pc 32738 (src/stage2/gen/NQPHLL.pir​:12925)
(src/stage2/gen/NQPHLL.nqp​:1356)
called from Sub 'eval' pc 28285 (src/stage2/gen/NQPHLL.pir​:11065)
(src/stage2/gen/NQPHLL.nqp​:1113)
called from Sub '' pc 30528 (src/stage2/gen/NQPHLL.pir​:12049)
(src/stage2/gen/NQPHLL.nqp​:1220)
called from Sub 'command_eval' pc 30411
(src/stage2/gen/NQPHLL.pir​:11999) (src/stage2/gen/NQPHLL.nqp​:1252)
called from Sub 'command_eval' pc 369 (src/gen/perl6-compiler.pir​:194)
(src/Perl6/Compiler.nqp​:17)
called from Sub 'command_line' pc 29434
(src/stage2/gen/NQPHLL.pir​:11594) (src/stage2/gen/NQPHLL.nqp​:1202)
called from Sub 'MAIN' pc 367 (src/gen/perl6.pir​:136) (src/gen/main.nqp​:44)
called from Sub '' pc 321 (src/gen/perl6.pir​:115) (src/gen/main.nqp​:32)
called from Sub '' pc 1064 (src/gen/perl6.pir​:382) (src/gen/main.nqp​:57)

https://github.com/ugexe/Perl6-Text--Levenshtein--Damerau triggers this
bug by trying to declare

my Int @​scores :shape($source_length + 1, $target_length + 1)

@p6rt
Copy link
Author

p6rt commented Jul 5, 2015

From @usev6

This seems to be the same problem as the one in https://rt-archive.perl.org/perl6/Ticket/Display.html?id=117417. Maybe the two tickets could be merged?

1 similar comment
@p6rt
Copy link
Author

p6rt commented Jul 5, 2015

From @usev6

This seems to be the same problem as the one in https://rt-archive.perl.org/perl6/Ticket/Display.html?id=117417. Maybe the two tickets could be merged?

@p6rt
Copy link
Author

p6rt commented Jul 5, 2015

@usev6 - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Oct 9, 2015

From @jnthn

On Thu Sep 12 11​:38​:10 2013, moritz wrote​:

moritz r​: my $s :a
camelia rakudo 69c3cc​: OUTPUT«===SORRY!===␤invoke() not implemented in
class 'QAST​::Op'␤»

Now gives the rather more helpful​:

===SORRY!=== Error while compiling -e
You can't adverb $x
at -e​:1
------> my $x :a<HERE><EOL>

Test added to S32-exceptions/misc.t.

@p6rt p6rt closed this as completed Oct 9, 2015
@p6rt
Copy link
Author

p6rt commented Oct 9, 2015

@jnthn - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant