[clang] Fix crash and improve diagnostics for void lambda returns (PR #188904)

Kartik Ohlan via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 2 06:52:28 PDT 2026


================
@@ -387,12 +387,16 @@ Bug Fixes in This Version
 - Correctly diagnosing and no longer crashing when ``export module foo``
   (without a semicolon) are the final tokens in a module file. (#GH187771)
 - Fixed a crash in duplicate attribute checking caused by comparing constant arguments with different integer signedness. (#GH188259)
+- Fixed a crash when returning an initializer list from a void lambda or block.
+  The compiler now emits a proper error message that correctly says "lambda"
+  instead of "block" when applicable. (GH188661)
----------------
Ko496-glitch wrote:

ohh this is my editor 

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


More information about the cfe-commits mailing list