Skip to content
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

Using arrayWith crashes the compiler #23169

Closed
Nmerryman opened this issue Jan 5, 2024 · 1 comment
Closed

Using arrayWith crashes the compiler #23169

Nmerryman opened this issue Jan 5, 2024 · 1 comment

Comments

@Nmerryman
Copy link

Description

Simply using arrayWith crashes the compiler without leaving a stack trace.

var a = arrayWith(1, 3)

Is enough to trigger it.

Nim Version

Nim Compiler Version 2.0.0 [Linux: amd64]
Compiled at 2023-08-01
Copyright (c) 2006-2023 by Andreas Rumpf

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

Current Output

home/n/.choosenim/toolchains/nim-2.0.0/lib/system.nim(2818, 25) Error: internal error: genMagicExpr: mDup
No stack traceback available
To create a stacktrace, rerun compilation with './koch temp compile <file>', see https://nim-lang.github.io/Nim/intern.html#debugging-the-compiler for details

Expected Output

Either compilation or a readable error.

Possible Solution

No response

Additional Information

No response

@ringabout
Copy link
Member

Duplicate of #22923. I will fix it soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants