Stream: contributing

Topic: There can only be floats here


view this post on Zulip Fábio Beirão (May 28 2023 at 21:23):

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.

view this post on Zulip Brendan Hansknecht (May 28 2023 at 21:32):

Running roc check can sometime be informative for this kind of stuff

view this post on Zulip Fábio Beirão (May 28 2023 at 21:33):

: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

view this post on Zulip Brendan Hansknecht (May 28 2023 at 21:33):

Definitely a compiler bug just means we hit something in the compile that we think should be impossible no matter the user code.

view this post on Zulip Brendan Hansknecht (May 28 2023 at 21:34):

Anyway, source code and if possible a minimal repo/filed bug would be great.

view this post on Zulip Fábio Beirão (May 28 2023 at 21:37):

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:

view this post on Zulip Fábio Beirão (May 28 2023 at 21:45):

Opened issue #5467 with the code that reproduces the issue


Last updated: Jul 06 2025 at 12:14 UTC