While fooling around with creating a new example I have come across this "Definitely a compiler bug", "There can only be floats here!":
image.png
This is the nightly from 4 days ago, I'll grab the most recentest nightly and try again. I did a quick search in Zulip and github issues and couldn't find something similar. I am pretty sure this is user error, but thought maybe it was worth mentioning.
Running roc check
can sometime be informative for this kind of stuff
:check: Yes, still happening in latest nightly.
roc check
states 0 errors and 0 warnings found in 21 ms.
image.png
Let me find the smallest bit of code that reproduces the issue
Definitely a compiler bug just means we hit something in the compile that we think should be impossible no matter the user code.
Anyway, source code and if possible a minimal repo/filed bug would be great.
When I do roc run
instead of roc test
I get:
The surgical linker currently has issue #3609 and would fail linking your app.
Please use--linker=legacy
to avoid the issue for now.
And if I do roc run --linker=legacy
then the app actually runs.. :thinking:
Opened issue #5467 with the code that reproduces the issue
Last updated: Jul 06 2025 at 12:14 UTC