llvm / llvm/llvm-project

Clangd segfault on lambda template

Open
#158,485 3 comments 0 reactions 0 assignees View on GitHub
clangd crash
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

```
clangd --version
clangd version 20.1.6
Features: linux
Platform: x86_64-pc-linux-gnu
```

`auto DoType = [&]() {...};`
`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

https://github.com/sjrc6/TaterClient-ddnet/commit/91e95f3ea08e0556c1803ac5c8aee10da30422f9

[crash.txt](https://github.com/user-attachments/files/22320812/crash.txt)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.