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

via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 29 08:11:23 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">;
----------------
cor3ntin wrote:

I don't think `underspecified object` is useful for users
Maybe `error: the deduced type of foo refers to a struct|union|enum bar which is defined in in initializer.`

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


More information about the cfe-commits mailing list