When comparing two arrays, their pointers are compared instead of their elements, which means that they are not trivially equality comparable
Fixes #63371
Paths
| Differential D153737
[clang] __is_trivially_equality_comparable should return false for arrays ClosedPublic Authored by philnik on Jun 25 2023, 8:20 PM.
Details Summary When comparing two arrays, their pointers are compared instead of their elements, which means that they are not trivially equality comparable Fixes #63371
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jun 26 2023, 9:28 AM Closed by commit rG4de66e8c4434: [clang] __is_trivially_equality_comparable should return false for arrays (authored by philnik). · Explain WhyJun 26 2023, 9:37 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 534609 clang/lib/AST/Type.cpp
clang/test/SemaCXX/type-traits.cpp
|