Issue |
120802
|
Summary |
Clang crashes when using lambda captures inside a trailing return decltype
|
Labels |
clang,
clang:frontend
|
Assignees |
shafik
|
Reporter |
fahadnayyar
|
Clang crashed on this example:
```
template<typename T>
consteval auto matches(T t)
{
return [](auto u) -> decltype([u](){}()){}(t);
}
int main() {
matches(0);
return 0;
}
```
This issue was introduced from clang16.0.0 ( released on March 17, 2023) to clang 17.0.1 (released on September 9, 2023)
https://godbolt.org/z/q9v9q31f4
Gcc works fine for this example: https://godbolt.org/z/x8z41EKr4
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs