diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp --- a/clang/lib/Sema/SemaDeclCXX.cpp +++ b/clang/lib/Sema/SemaDeclCXX.cpp @@ -8706,7 +8706,7 @@ } } - // C++2a [class.eq]p1, [class.rel]p1: + // C++2a [class.eq]p1, [class.compare.secondary]p1: // A [defaulted comparison other than <=>] shall have a declared return // type bool. if (DCK != DefaultedComparisonKind::ThreeWay &&