llvm / llvm/llvm-project

ICE when parsing lambdas

Open
#178,528 7 comments 0 reactions 0 assignees View on GitHub
clang:codegen crash
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Code: (block scope)
```cpp
const auto meow = ([] { return N; }).template operator()<([](this auto&& self) -> decltype([]{}) { return decltype(self()){}; })().operator()>();
```

Compiler Explorer: https://redirect.compiler.gg/uyoLFbBR

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.