| Issue |
115802
|
| Summary |
Error on requires _expression_ in templated generic lambda
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
Eczbek
|
https://godbolt.org/z/Yfb8dxYbj
```cpp
int main() {
[]<int = 0> {
void(requires(int* x) { x = 1; });
}();
}
```
```
<source>:3:31: error: incompatible integer to pointer conversion assigning to 'int *' from 'int'
3 | void(requires(int* x) { x = 1; });
| ^
1 error generated.
Compiler returned: 1
```
GCC and MSVC seem to be fine with this code.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs