Skip to content

Compiler internal error compiler/vmgen.nim(1771, 23) with static overload #25008

@tersec

Description

@tersec

Nim Version

Nim Compiler Version 2.2.4 [Linux: amd64]
Compiled at 2025-06-18
Copyright (c) 2006-2025 by Andreas Rumpf

git hash: f7145dd26efeeeb6eeae6fff649db244d81b212d
active boot switches: -d:release
Nim Compiler Version 2.3.1 [Linux: amd64]
Compiled at 2025-06-18
Copyright (c) 2006-2025 by Andreas Rumpf

git hash: aba93615105b8243b95c534f2d7c39aa69ace997
active boot switches: -d:release

Description

proc g(_: static bool) = discard
proc g(_: int) = discard
proc y() = g((; let k = 0; k))

Current Output

Error: internal error: /tmp/nim/compiler/vmgen.nim(1771, 23)
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 internal error

Known Workarounds

No response

Additional Information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions