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

Const seq into sink arg: =copy operator not found #16120

Closed
planetis-m opened this issue Nov 24, 2020 · 5 comments
Closed

Const seq into sink arg: =copy operator not found #16120

planetis-m opened this issue Nov 24, 2020 · 5 comments

Comments

@planetis-m
Copy link
Contributor

planetis-m commented Nov 24, 2020

Example

proc main =
  let avals = @[@[1.0'f32, 4.0, 7.0, 10.0]]
  let rankdef = avals
  echo avals.len

main()

Current Output

a.nim(2, 16) Error: internal error: '=copy' operator not found for type array[0..0, seq[float32]]

Additional Information

Caused by #16115 confirmed.

$ nim -v
Nim Compiler Version 1.5.1 [Linux: amd64]
Compiled at 2020-11-24
Copyright (c) 2006-2020 by Andreas Rumpf

git hash: d306a04466b7f1129620dc3ab35443119ed4c867
active boot switches: -d:release --gc:markAndSweep
@timotheecour
Copy link
Member

timotheecour commented Nov 24, 2020

can't reproduce; works for me, on osx, same nim version d306a04

@jangko
Copy link
Contributor

jangko commented Nov 25, 2020

same with me, cannot reproduce on both WSL Ubuntu 20.04 and Windows 10.

@planetis-m
Copy link
Contributor Author

Guys its --gc:arc specific..

@jangko
Copy link
Contributor

jangko commented Nov 25, 2020

i see, now both wsl ubuntu and windows 10 produce the same error

@cooldome
Copy link
Member

cooldome commented Nov 26, 2020

I have a fix. I don't think this is regression.

@cooldome cooldome changed the title Nested seqs not =copy operator found Const seq into sink arg: not =copy operator found Nov 26, 2020
@cooldome cooldome changed the title Const seq into sink arg: not =copy operator found Const seq into sink arg: =copy operator not found Nov 26, 2020
cooldome added a commit that referenced this issue Nov 26, 2020
narimiran pushed a commit that referenced this issue Nov 26, 2020
(cherry picked from commit 8c12d3e)
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants