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
Empty array literal in tuple crashes compiler in codegen #21599
Labels
Compiler Crash
Error Messages
Invalid Code Acceptance
Everything related to compiler not complaining about invalid code
Comments
I think the expected output should be to error with let a = [] |
github-actions
bot
added
the
stale
Staled PR/issues; remove the label after fixing them
label
Jun 2, 2023
!nim c echo ([], ) |
@juancarlospaco (contributor) devel :-1: FAILOutput
Stats
IRASTnnkStmtList.newTree(
nnkCommand.newTree(
newIdentNode("echo"),
nnkTupleConstr.newTree(
nnkBracket.newTree(
)
)
)
) stable :-1: FAILOutput
Stats
IRASTnnkStmtList.newTree(
nnkCommand.newTree(
newIdentNode("echo"),
nnkTupleConstr.newTree(
nnkBracket.newTree(
)
)
)
) 1.6.0 :-1: FAILOutput
Stats
IRASTnnkStmtList.newTree(
nnkCommand.newTree(
newIdentNode("echo"),
nnkTupleConstr.newTree(
nnkBracket.newTree(
)
)
)
) 1.4.0 :-1: FAILOutput
Stats
IRASTnnkStmtList.newTree(
nnkCommand.newTree(
newIdentNode("echo"),
nnkTupleConstr.newTree(
nnkBracket.newTree(
)
)
)
) 1.2.0 :-1: FAILOutput
Stats
IRASTnnkStmtList.newTree(
nnkCommand.newTree(
newIdentNode("echo"),
nnkTupleConstr.newTree(
nnkBracket.newTree(
)
)
)
) 1.0.0 :-1: FAILOutput
Stats
IRASTnnkStmtList.newTree(
nnkCommand.newTree(
newIdentNode("echo"),
nnkTupleConstr.newTree(
nnkBracket.newTree(
)
)
)
) 0.20.2 :-1: FAILOutput
Stats
IRASTnnkStmtList.newTree(
nnkCommand.newTree(
newIdentNode("echo"),
nnkTupleConstr.newTree(
nnkBracket.newTree(
)
)
)
) 52 minutes bisecting 7 commits at 0 commits per second.
|
metagn
changed the title
Minor compiler error
Empty array literal in tuple crashes compiler in codegen
Aug 28, 2023
metagn
added
Compiler Crash
Invalid Code Acceptance
Everything related to compiler not complaining about invalid code
labels
Aug 28, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Compiler Crash
Error Messages
Invalid Code Acceptance
Everything related to compiler not complaining about invalid code
Description
Code below would crush compiler, play
Nim Version
Nim Compiler Version 1.6.12 [MacOSX: amd64]
Compiled at 2023-03-10
Copyright (c) 2006-2023 by Andreas Rumpf
active boot switches: -d:release -d:nimUseLinenoise
Current Output
Expected Output
No response
Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: