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

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 25 14:17:08 PDT 2025


================
@@ -9089,8 +9089,8 @@ bool Sema::hasStructuralCompatLayout(Decl *D, Decl *Suggested) {
   // FIXME: Add a specific mode for C11 6.2.7/1 in StructuralEquivalenceContext
   // and isolate from other C++ specific checks.
   StructuralEquivalenceContext Ctx(
-      D->getASTContext(), Suggested->getASTContext(), NonEquivalentDecls,
-      StructuralEquivalenceKind::Default,
+      getLangOpts(), D->getASTContext(), Suggested->getASTContext(),
+      NonEquivalentDecls, StructuralEquivalenceKind::Default,
       false /*StrictTypeSpelling*/, true /*Complain*/,
       true /*ErrorOnTagTypeMismatch*/);
----------------
shafik wrote:

```suggestion
       /*StrictTypeSpelling=*/false, /*Complain=*/true,
       /*ErrorOnTagTypeMismatch=*/true);
```

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


More information about the cfe-commits mailing list