Clang crash with -Wunsafe-buffer-usage on assertion failure: const ASTRecordLayout &clang::ASTContext::getASTRecordLayout(const RecordDecl *) const: Assertion `D && "Cannot get layout of forward declarations!"' failed. #116286
Labels
clang:diagnostics
New/improved warning or error message in Clang, but not in clang-tidy or static analyzer
crash
Prefer [crash-on-valid] or [crash-on-invalid]
Trunk clang crashes with
-Wunsafe-buffer-usage
: https://godbolt.org/z/Pjj413W68 and https://godbolt.org/z/j4hnY3eEz.#91991 (reverted) introduced the same crash with
-Wunsafe-buffer-usage
: https://godbolt.org/z/vcv8d6sYr, which is likely due to the same underlying issue.The text was updated successfully, but these errors were encountered: