================
@@ -0,0 +1,28 @@
+// RUN: %clang_cc1 -std=gnu99 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -std=gnu99 -fsyntax-only -verify -fno-recovery-ast %s
+
+// A declaration that declares nothing made the enclosing statement expression
+// invalid without an error, so the void condition below was never diagnosed
+// and CodeGen crashed on it.
----------------
akash-manna-sky wrote:

Same bug, fixed by this PR: without the empty declaration the assertion fails 
as expected on trunk.


https://github.com/llvm/llvm-project/pull/224682
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to