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

Segfault on equal sign in parapoly param #3883

Closed
leath-dub opened this issue Jul 6, 2024 · 0 comments · Fixed by #3884
Closed

Segfault on equal sign in parapoly param #3883

leath-dub opened this issue Jul 6, 2024 · 0 comments · Fixed by #3884

Comments

@leath-dub
Copy link

Context

na

Expected Behavior

Compiler should not segfault, it should report a syntax error

Current Behavior

It crashes and segfaults

Steps to Reproduce

Try compile the following file:

package main

Foo :: struct($T: typeid) {}
Bar :: struct($V: Foo($T=)) {}

This outputs the following when running odin build .:

The process was killed by SIGSEGV: Segmentation fault

Gdb sais that it fails on check_expr_base I think it is the $T= that is causing the issue.

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

Successfully merging a pull request may close this issue.

1 participant