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

LLVM invalid linkage error from nested closures #24779

Closed
solson opened this Issue Apr 24, 2015 · 0 comments

Comments

Projects
None yet
3 participants
@solson
Copy link
Member

solson commented Apr 24, 2015

Code:

(||||42)()()

Error:

Global is external, but doesn't have external or weak linkage!
i32 (%closure*)* @_ZN4main12closure.1067E
invalid linkage type for function declaration
i32 (%closure*)* @_ZN4main12closure.1067E
LLVM ERROR: Broken module found, compilation aborted!

eefriedman added a commit to eefriedman/rust that referenced this issue Jun 7, 2015

Translate "ignored" closure expressions.
This isn't a very clean fix, but I'm not sure what a better fix would look
like.

Fixes rust-lang#24779.

eefriedman added a commit to eefriedman/rust that referenced this issue Jun 8, 2015

Translate "ignored" closure expressions.
This isn't a very clean fix, but I'm not sure what a better fix would look
like.

Fixes rust-lang#24779.

bors added a commit that referenced this issue Jun 8, 2015

Auto merge of #26079 - eefriedman:emit-closure, r=nrc
This isn't a very clean fix, but I'm not sure what a better fix would look
like.

Fixes #24779.

@bors bors closed this in #26079 Jun 9, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.