[clang] [clang][C23] N3006 Underspecified object declarations (PR #79845)

Mariya Podchishchaeva via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 29 08:52:05 PST 2024


================
@@ -7639,6 +7639,8 @@ def err_attribute_arm_mve_polymorphism : Error<
   "'__clang_arm_mve_strict_polymorphism' attribute can only be applied to an MVE/NEON vector type">;
 def err_attribute_webassembly_funcref : Error<
   "'__funcref' attribute can only be applied to a function pointer type">;
+def err_c23_underspecified_object_declaration: Error<
+  "'%select{struct|<ERROR>|union|<ERROR>|enum}0 %1' is defined as an underspecified object initializer">;
----------------
Fznamznon wrote:

AFAIK `underspecified` is how the standard calls it. And `constexpr` declarations in C are also "underspecified".
gcc agrees https://godbolt.org/z/1KcW9zTcd .
I agree that `underspecified` sounds weird for ordinary people though.

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


More information about the cfe-commits mailing list