[clang] [clang] more useful error message for decomposition declaration missing initializer (PR #127924)

Kevin Bravo via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 27 15:46:13 PDT 2026


================
@@ -497,6 +497,7 @@ def err_expected_coloncolon_after_super : Error<
 def ext_decomp_decl_empty : ExtWarn<
   "ISO C++17 does not allow a decomposition group to be empty">,
   InGroup<DiagGroup<"empty-decomposition">>;
+def err_decomp_decl_expected_init : Error<"decomposition declaration %0 requires an initializer; got '%1'">;
----------------
kbrav wrote:

Sounds better.  Added to the latest commit.

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


More information about the cfe-commits mailing list