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 · Fixed by #26079
Closed

LLVM invalid linkage error from nested closures #24779

solson opened this issue Apr 24, 2015 · 0 comments · Fixed by #26079
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@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!
@steveklabnik steveklabnik added I-wrong A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. labels Apr 28, 2015
@nikomatsakis nikomatsakis added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jun 3, 2015
eefriedman added a commit to eefriedman/rust that referenced this issue Jun 8, 2015
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
This isn't a very clean fix, but I'm not sure what a better fix would look
like.

Fixes #24779.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants