C++ codegen regression: using channels leads to broken C++ code #5142

Closed
nigredo-tori opened this Issue Dec 23, 2016 · 0 comments

Projects

None yet

1 participant

@nigredo-tori
Contributor

One more regression, introduced by sighashes branch.
Example:

var ci: Channel[int]
ci.open

Compiling this (with cpp --threads:on) leads to this error:

/home/dmitry/work/tmp/test_mvar/nimcache/dups_a.o: In function `NimMainModule':
dups_a.cpp:(.text+0x22e): undefined reference to `open_y62NXSYKZobgBOQPLqhK7Q(TY_ue40Uq6h8bju5uDpfFIWKQ&)'

Tested on 0daca5c.
Bisect points to e169eaa.

@Araq Araq added a commit that closed this issue Dec 23, 2016
@Araq Araq fixes #5142 93fb8b6
@Araq Araq closed this in 93fb8b6 Dec 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment