Skip to content

[ICE] C-variadic functions are only valid with one or more fixed arguments #63430

Closed
@eddyb

Description

@eddyb

This ICEs (see title) because of the call:

extern {
    fn foo(...);
}

fn main() {
    unsafe { foo(1, 2, 3); }
}

That's because the definition of foo errored in 1.34, but doesn't since 1.35:

extern {
    fn foo(...);
}

cc @dlrobertson (found while working on #44930 (comment))

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-type-systemArea: Type systemI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions