Skip to content

LLVM invalid linkage error from nested closures #24779

Closed
@solson

Description

@solson

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions