[Bug c++/110837] New: ICE on non-friend default operator overloading
stevenxia990430 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Jul 28 06:35:33 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110837
Bug ID: 110837
Summary: ICE on non-friend default operator overloading
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: stevenxia990430 at gmail dot com
Target Milestone: ---
The following invalid program reports an internal compiler error. Failed on
gcc-trunk.
To quickly reproduce: https://gcc.godbolt.org/z/eqjbxYhjs
```
#include <vector>
static constexpr int M = 100;
bool operator!= (std::array<int, M> const& lhs, std::array<int, M> const& rhs)
= default;
int main() {
}
```
note without default gcc does not crash with internal compiler error.
More information about the Gcc-bugs
mailing list