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

regression(0.18 => devel): hash(cstring) fails in VM #16061

Closed
timotheecour opened this issue Nov 20, 2020 · 0 comments · Fixed by #16551
Closed

regression(0.18 => devel): hash(cstring) fails in VM #16061

timotheecour opened this issue Nov 20, 2020 · 0 comments · Fixed by #16551
Assignees
Labels

Comments

@timotheecour
Copy link
Member

hash(cstring) fails in VM

Example

import std/hashes
proc main() =
  echo hash(cstring"abracadabra")
static: main()
main()

Current Output

lib/pure/hashes.nim(326, 33) Error: cannot generate code for: mSlice
murmurHash(toOpenArrayByte(x, 0, x.high))

Expected Output

works

Additional Information

  • fails: devel 1.5.1 b3c3557
  • works: 0.18
@timotheecour timotheecour added VM see also `const` label Standard Library Regression and removed VM see also `const` label labels Nov 20, 2020
@ringabout ringabout self-assigned this Jan 2, 2021
ringabout added a commit to ringabout/Nim that referenced this issue Jan 2, 2021
@ringabout ringabout mentioned this issue Jan 2, 2021
Araq pushed a commit that referenced this issue Jan 2, 2021
mildred pushed a commit to mildred/Nim that referenced this issue Jan 11, 2021
ardek66 pushed a commit to ardek66/Nim that referenced this issue Mar 26, 2021
timotheecour added a commit to timotheecour/Nim that referenced this issue Mar 29, 2021
Araq pushed a commit that referenced this issue Mar 31, 2021
…6062)

* jsonutils: support cstring (including as Table key); improve docs
* changelog
* un-disable a test now that #16061 was fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants