================ @@ -19240,6 +19240,25 @@ void Sema::ActOnFields(Scope *S, SourceLocation RecLoc, Decl *EnclosingDecl, if (Record && FD->getType().isVolatileQualified()) Record->setHasVolatileMember(true); + auto IsNonDependentBitField = [](const FieldDecl *FD) { + return FD->isBitField() && !FD->getType()->isDependentType(); + }; + + if (Record && PreviousField && IsNonDependentBitField(FD) && ---------------- cor3ntin wrote:
If this is not enabled by default, maybe we should check the diagnostic is not ignored to avoid unnecessary work (`DiagnosticsEngine::isIgnored`) https://github.com/llvm/llvm-project/pull/117428 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits