Skip to content

bug: some recursion is borken #37

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

Open
dragoncoder047 opened this issue Jan 23, 2025 · 2 comments
Open

bug: some recursion is borken #37

dragoncoder047 opened this issue Jan 23, 2025 · 2 comments

Comments

@dragoncoder047
Copy link
Contributor

Def F3 as (Error "Test error"; F3);
Def F2 as (F3; F2);
Def F1 as (F2; F1);
Def F0 as (F1; F0);
F0;

gets you an unreachable():

0   cognac                              0x0000000100ae81ac unreachable + 72
1   cognac                              0x0000000100ae8a4c resolve_early_use + 0
2   cognac                              0x0000000100af1804 main + 424
3   dyld                                0x0000000183dc8274 start + 2840
@StavromulaBeta
Copy link
Collaborator

StavromulaBeta commented Jan 23, 2025

Looks like the issue is in add_arguments() assigning arguments to the function too optimistically.

@StavromulaBeta
Copy link
Collaborator

Minimum reproducible example

Def F3 as (F3);
Def F2 as (F3 ; F2);
F3;

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

2 participants