-
-
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
wrong Error: cannot generate VM code
depending on unrelated code
#12732
Labels
Comments
timotheecour
changed the title
wrong Nov 25, 2019
Error: cannot generate VM code
depending on unrelated codeError: cannot generate VM code
depending on unrelated code
Now gives
Is this fine? |
Araq
pushed a commit
that referenced
this issue
Aug 30, 2024
closes #1969, closes #7547, closes #7737, closes #11838, closes #12283, closes #12714, closes #12720, closes #14053, closes #16118, closes #19670, closes #22645 I was going to wait on these but regression tests even for recent PRs are turning out to be important in wide reaching PRs like #24010. The other issues with the working label felt either finnicky (#7385, #9156, #12732, #15247), excessive to test (#12405, #12424, #17527), or I just don't know what fixed them/what the issue was (#16128: the PR link gives a server error by Github, #12457, #12487).
metagn
added a commit
to metagn/Nim
that referenced
this issue
Sep 16, 2024
closes nim-lang#4774, closes nim-lang#7385, closes nim-lang#10019, closes nim-lang#12405, closes nim-lang#12732, closes nim-lang#13270, closes nim-lang#13799, closes nim-lang#15247, closes nim-lang#16128, closes nim-lang#16175, closes nim-lang#16774, closes nim-lang#17527, closes nim-lang#20880, closes nim-lang#21346
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
very strange bug: we get a CT error
Error: cannot generate VM code
for valid code, and the CT error disappears when commenting out or making private an unrelated constant (or when usingcurrentPkgDir2()
instead ofcurrentPkgDir2
)D20191124T182358
Example
nim c t0796.nim
t0796.nim:
t0796b.nim:
Current Output
Expected Output
should compile
Additional Information
fails on all versions of nim, including recent devel f22d3c7
The text was updated successfully, but these errors were encountered: