You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import std/macros
macrop(): untyped=result=newStmtList()
var a: intresult.addquotedo:
discard a
p()
It's true that using, e.g.,
discard `a`
fixes this, and this isn't meant to be correct-as-such-code. The point here is the Nim compiler internal error.
Nim Version
Nim Compiler Version 2.0.14 [Linux: amd64]
Compiled at 2025-01-23
Copyright (c) 2006-2023 by Andreas Rumpf
git hash: bf4de6a394e040d9810cba8c69fb2829ff04dcc6
active boot switches: -d:release
Nim Compiler Version 2.3.1 [Linux: amd64]
Compiled at 2025-01-23
Copyright (c) 2006-2025 by Andreas Rumpf
git hash: 6d59680217cfbd9314cf62d1d07adc8e6e552d53
active boot switches: -d:release
Current Output
Error: internal error: expr: var not init a_536870917
No stack traceback available
To create a stacktrace, rerun compilation with './koch temp c <file>', see https://nim-lang.github.io/Nim/intern.html#debugging-the-compiler for details
Expected Output
No Nim internal error
Known Workarounds
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Description
It's true that using, e.g.,
discard `a`
fixes this, and this isn't meant to be correct-as-such-code. The point here is the Nim compiler internal error.
Nim Version
Current Output
Expected Output
Known Workarounds
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: