llvm-project/clang/test/CXX/over
Roy Jacobson 3c75feab3b [clang] Compare constraints before diagnosing mismatched ref qualifiers (GH58962)
As noticed in GH58962, we should only diagnose illegal overloads of member functions
when the ref qualifiers don't match if the trailing constraints are the same.

The fix is to move the existing constraints check earlier in Sema::IsOverload.

Closes https://github.com/llvm/llvm-project/issues/58962

Reviewed By: erichkeane

Differential Revision: https://reviews.llvm.org/D138749
2022-11-29 14:57:26 +02:00
..
over.built [Sema][NFC] Add tests for builtin spaceship operator. 2021-11-05 11:44:19 +01:00
over.load [clang] Compare constraints before diagnosing mismatched ref qualifiers (GH58962) 2022-11-29 14:57:26 +02:00
over.match [Clang] use non-instantiated function declaration for constraints partial ordering 2022-10-30 22:39:47 -07:00
over.oper [Clang] Implement static operator[] 2022-11-29 12:39:52 +02:00
over.over [concepts] Implement dcl.decl.general p4: No constraints on non-template funcs 2022-05-17 06:21:51 -07:00