[clang] [Clang] Fixed a crash when parsing #embed parameters with unmatched closing brackets (PR #152877)

Mariya Podchishchaeva via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 11 05:48:10 PDT 2025


================
@@ -94,6 +94,9 @@ char buffer[] = {
 #embed "embed_parsing_errors.c" prefix() // OK: tokens within parens are optional
 #embed "embed_parsing_errors.c" prefix)
 // expected-error at -1 {{expected '('}}
+#embed "embed_parsing_errors.c" prefix()) // expected-error {{expected identifier}}
----------------
Fznamznon wrote:

I think this works already https://godbolt.org/z/n5h4cG3q9

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


More information about the cfe-commits mailing list