File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
test/CXX/class/class.compare/class.compare.default Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -693,6 +693,8 @@ Bug Fixes to C++ Support
693
693
and (#GH88832).
694
694
- Clang now defers all substitution into the exception specification of a function template specialization
695
695
until the noexcept-specifier is instantiated.
696
+ - Fix a crash when an implicitly declared ``operator== `` function with a trailing requires-clause has its
697
+ constraints compared to that of another declaration.
696
698
697
699
Bug Fixes to AST Handling
698
700
^^^^^^^^^^^^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change @@ -161,3 +161,14 @@ struct non_constexpr_type {
161
161
162
162
my_struct<non_constexpr_type> obj; // cxx2a-note {{in instantiation of template class 'GH61238::my_struct<GH61238::non_constexpr_type>' requested here}}
163
163
}
164
+
165
+ namespace Constrained {
166
+ template <typename T>
167
+ struct A {
168
+ std::strong_ordering operator <=>(const A&) const requires true = default ;
169
+ };
170
+
171
+ bool f (A<int > a) {
172
+ return a != A<int >();
173
+ }
174
+ }
You can’t perform that action at this time.
0 commit comments