-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Can't check if stderr is static #19680
Labels
Comments
Your code might be triggering the same underlying compiler bug that I hit with nim-regex. The last 6 lines of the debug compiler stack trace are the same as with the code here: nitely/nim-regex#107. Idk if this is helpful at all, because it seems your code is a simpler way to trigger the same bug. |
Araq
pushed a commit
that referenced
this issue
Apr 12, 2022
narimiran
pushed a commit
that referenced
this issue
Apr 24, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While working on Futhark I wanted to decide whether or not to put something into a
const
or alet
. Basically it tries to read out macros which can resolve to simple numbers and I want those to be consts, but it can also be other stuff which can't go into a const. I came if with a solution of usingwhen x is static: const y = x else: let y = x
which works fine for most identifiers. But certain built-ins likestdout
andstderr
makes the compiler crash.Example
Current Output
Expected Output
Possible Solution
Not really sure what a possible solution would be, but building a debug compiler gives a lot more output to work with.
The text was updated successfully, but these errors were encountered: