Skip to content

ICE when explicit object parameter be a function parameter pack #80971

Closed
@hewillk

Description

@hewillk
struct S {
  auto f(this auto self...) {  }
};

int main() {
  S{}.f(0);
}

https://godbolt.org/z/bP8f6hzGs

Clang will crash with the above code. This should be a legal variadic function IMO.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"crashPrefer [crash-on-valid] or [crash-on-invalid]

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions