[clang] [C23] Implement WG14 N3037 (PR #132939)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 26 05:40:10 PDT 2025
================
@@ -1454,6 +1567,12 @@ static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context,
QualType Owner2Type) {
const auto *Owner2 = cast<Decl>(Field2->getDeclContext());
+ // In C23 mode, check for structural equivalence of attributes on the fields.
+ // FIXME: Should this happen in C++ as well?
----------------
AaronBallman wrote:
Yes, we get here in C++ for ODR checking.
https://github.com/llvm/llvm-project/pull/132939
More information about the cfe-commits
mailing list