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

attempt to define call operator can crash the compiler #1222

Open
disruptek opened this issue Mar 6, 2024 · 1 comment
Open

attempt to define call operator can crash the compiler #1222

disruptek opened this issue Mar 6, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@disruptek
Copy link
Contributor

Specification

If one has not enabled the callOperator experimental, an attempt to define a () callable will crash the compiler.

Example

proc `()` = discard

Actual Output

SIGSEGV: Illegal storage access. (Attempt to read from nil?)

Expected Output

Some kind of error message.

Additional Information

Nimskull Compiler Version 0.1.0-dev.21250 [linux: amd64]

Source hash: 924dcaf0ae0285a93ca084c05837a75dcec34278
Source date: 2024-03-05

active boot switches: -d:release -d:danger⏎ 
@disruptek disruptek added the bug Something isn't working label Mar 6, 2024
@saem
Copy link
Collaborator

saem commented Mar 7, 2024

Thanks for the report, I touched this bit of code last-ish and I'm pretty sure I know what the issue is, I can fix it.

@saem saem self-assigned this Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants