[clang] Reapply "[Clang] Fix __is_trivially_equality_comparable returning true with ineligebile defaulted overloads" (#97002) (PR #97894)
Nikolas Klauser via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 9 10:58:28 PDT 2024
philnik777 wrote:
@cor3ntin The `S.CreateOverloadedBinOp` (line 5226) now gets a real location (the keyword location - seemed the most appropriate to me). The problem was that during overload resolution something got instantiated and that requires a real location. Although I'm not sure why that's the case. I've also added the test case
```c++
template <class>
class Template {};
// Make sure we don't crash when instantiating a type
static_assert(!__is_trivially_equality_comparable(Template<Template<int>>));
```
for that.
https://github.com/llvm/llvm-project/pull/97894
More information about the cfe-commits
mailing list