[c++20] Fix incorrect assumptions in checks for comparison category types.
authorRichard Smith <richard@metafoo.co.uk>
Mon, 9 Dec 2019 20:08:59 +0000 (12:08 -0800)
committerRichard Smith <richard@metafoo.co.uk>
Mon, 9 Dec 2019 20:18:33 +0000 (12:18 -0800)
commit56bba012d9729af8ff4252dc860f1f7696942f1a
tree6f28d32f8fb26d651ff5016a98bd2f6ad4dbfedf
parentd694594d7650571dec40cc0ef9db6087963d62a0
[c++20] Fix incorrect assumptions in checks for comparison category types.

In the presence of modules, we can have multiple lookup results for the
same entity, and we need to re-check for completeness each time we
consider a type.
clang/lib/AST/ComparisonCategories.cpp
clang/lib/Sema/SemaDeclCXX.cpp
clang/test/SemaCXX/compare-cxx2a.cpp
clang/test/SemaCXX/compare-modules-cxx2a.cpp [new file with mode: 0644]