Skip to content

Clangd segfault on lambda template #158485

@SollyBunny

Description

@SollyBunny
clangd --version
clangd version 20.1.6
Features: linux
Platform: x86_64-pc-linux-gnu

auto DoType = [&]<bool (*IsMatchingType)(unsigned char), const int &Width, const unsigned int &Color>() {...};
DoType.template operator()<[](unsigned char Tile){ return Tile == TILE_SOLID; }, g_Config.m_TcOutlineWidthSolid, g_Config.m_TcOutlineColorSolid>();

Commenting out the call stops clangd from crashing

TaterClient/TClient@91e95f3

crash.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    clangdcrashPrefer [crash-on-valid] or [crash-on-invalid]

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions