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

error message on illegally post-declared label in Rakudo #4411

Open
p6rt opened this issue Jul 18, 2015 · 1 comment
Open

error message on illegally post-declared label in Rakudo #4411

p6rt opened this issue Jul 18, 2015 · 1 comment
Labels
LTA

Comments

@p6rt
Copy link

@p6rt p6rt commented Jul 18, 2015

Migrated from rt.perl.org#125638 (status was 'new')

Searchable as RT125638$

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented Jul 18, 2015

From @masak

<jaffa4> m​: goto b; b​: ; say "hello";
<camelia> rakudo-moar 48c0ba​: OUTPUT«===SORRY!=== Error while
compiling /tmp/keUfxpNWaf␤Variable '&b' is not declared␤at
/tmp/keUfxpNWaf​:1␤------> goto ⏏b; b​: ; say "hello";␤»
<masak> that one could use a better error message.
<masak> std​: goto B; B​: say "hello"
<camelia> std 28329a7​: OUTPUT«===SORRY!===␤Illegally post-declared
type​:␤ 'B' used at line 1␤Check failed␤FAILED 00​:00 135m␤»
<masak> right.
* masak submits LTA rakudobug

STD does a better job there. (It feels like it should be possible to
figure out that B is a label and not a type here; I know there's a
heuristic in place that says upperbase => probably a type, but we do
have the label in the program in this case.) Even with "type" in the
error message, STD's error message is way better than Rakudo's, since
it says "Illegally post-declared", which is the real problem.

@p6rt p6rt added the LTA label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.