blob: cb521edf7f3f4a920a40c446b8158710da1d63e2 [file] [log] [blame]
// PR c++/98712
// { dg-do run { target c++20 } }
struct S
{
int s = 0;
S(int s) : s(s) {}
bool operator==(const S&) const = default;
};
struct T : S
{
T(int s) : S(s) {}
constexpr bool operator==(const T&) const = default;
};
int
main()
{
if (T(0) == T(1))
__builtin_abort ();
}