| Issue |
233807
|
| Summary |
Segmentation fault in the mangler on a lambda in an enable_if attribute
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
TabbySqui
|
Infinite recursion while mangling the function.
```cxx
template <int = 0>
int get()
__attribute__((enable_if([]() { return true; }(), ""))){};
int y = get();
```
https://godbolt.org/z/G5G8qPP5E
The dependent lambda has a file context, but the instantiated lambda has the function context. Thus,
mangle `get` ->
mangle the enable_if attr expr ->
mangle the lambda ->
mangle `get` -> ...
<details>
<summary>clang-trunk </summary>
```
clang version 24.0.0git (https://github.com/llvm/llvm-project.git 446eb2c13b4e8c7b5136f764c51637c345dfc695)
```
</details>
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs