On Thu, 07 Aug 2025 14:36:28 -0700, Nathan Chancellor wrote:
> After an innocuous change in -next that modified a structure that
> contains __counted_by, clang-19 start crashing when building certain
> files in drivers/gpu/drm/xe. When assertions are enabled, the more
> descriptive failure is:
> 
>   clang: clang/lib/AST/RecordLayoutBuilder.cpp:3335: const ASTRecordLayout 
> &clang::ASTContext::getASTRecordLayout(const RecordDecl *) const: Assertion 
> `D && "Cannot get layout of forward declarations!"' failed.
> 
> [...]

Applied to for-linus/hardening, thanks!

[1/1] hardening: Require clang 20.1.0 for __counted_by
      https://git.kernel.org/kees/c/871fcff457f9

Take care,

-- 
Kees Cook


Reply via email to