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

Incorrect location when error occurs in the tail call #3546

Open
mahrud opened this issue Oct 27, 2024 · 0 comments
Open

Incorrect location when error occurs in the tail call #3546

mahrud opened this issue Oct 27, 2024 · 0 comments

Comments

@mahrud
Copy link
Member

mahrud commented Oct 27, 2024

This issue was raised and fixed by @pzinn in #3144, but that PR had to be reverted due to #3417, so I'm making it an issue again.

Tail call optimization does not handle errors correctly:

i1 : f = x -> (
     x 1
     )

o1 = f

o1 : FunctionClosure

i2 : f RR
stdio:4:1:(3): error: no method for adjacent objects:
--            RR (of class InexactFieldFamily)
--    SPACE   1 (of class ZZ)

Note that the error line is "4:1", referring to f RR, but should be "2:6" referring to x 1 (which evaluates to RR 1, as pointed by the error message).

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

No branches or pull requests

1 participant