Skip to content

Functions with an ABI set may be given the same symbol names. #26201

Closed
@Tobba

Description

@Tobba

Specifically, if you have multiple inline functions with the same name, but in different scopes:

fn main() {
    {
        extern "C" fn foo() { }
    }
    {
        extern "C" fn foo() { }
    }
}

This results in an ICE:

error: internal compiler error: symbol `_ZN4main3foo10__rust_abiE` already defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions