mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-24 12:36:07 +00:00

A file scope declaration without an initializer which is neither extern nor thread_local is a tentative definition. If the declaration of an identifier for an object is a tentative definition and has internal linkage, the declared type shall not be an incomplete type. Clang was previously failing to diagnose this in -pedantic mode. Fixes #50661 --------- Co-authored-by: Mariya Podchishchaeva <mariya.podchishchaeva@intel.com>