[clang] [C23] Implement WG14 N3037 (PR #132939)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 26 05:15:16 PDT 2025


================
@@ -1496,9 +1615,37 @@ static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context,
     return false;
   }
 
-  if (Field1->isBitField())
-    return IsStructurallyEquivalent(Context, Field1->getBitWidth(),
-                                    Field2->getBitWidth());
+  if ((Field1->isBitField() || Field2->isBitField()) &&
----------------
AaronBallman wrote:

Yes, it was a previous bug and I am testing it in the n3037.c test by testing in both orders.

https://github.com/llvm/llvm-project/pull/132939


More information about the cfe-commits mailing list