Skip to content

Clang 18 regression on C++20 mode: Unexpected placeholder builtin type! crash #122892

@egorpugin

Description

@egorpugin
clang++ -v
clang version 20.0.0git (https://github.com/llvm/llvm-project c047a5b3f6e2295dd74f1e8f17f1a023150b246c)
Target: x86_64-pc-windows-msvc
Thread model: posix

clang++ main.cpp -std=c++20

struct A {
    void f() {
        l(r);
    }
    static void r() {}
    static auto l(auto &&f) {}    // error
  //static void l(auto &&f) {}    // ok
};

int main() {
    A k;
    k.f();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions