Issue |
104414
|
Summary |
C++23 default comparisons is incorrectly accepted
|
Labels |
new issue
|
Assignees |
|
Reporter |
marco-antognini-sonarsource
|
Sibling issue of #104413.
According to https://eel.is/c++draft/class.compare#default-1, the following program should be rejected by Clang but it isn't.
```cpp
struct A {
bool operator==(this const A, const A&) = default;
};
```
Reproducible at https://godbolt.org/z/reoWEExM7
See also https://stackoverflow.com/a/78808748/24103368 from @brevzin.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs