[clang] [Clang] Fix infinite loop on '::' inside parens in C mode (PR #195377)
Corentin Jabot via cfe-commits
cfe-commits at lists.llvm.org
Sun May 3 09:04:59 PDT 2026
================
@@ -0,0 +1,3 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+int x = (::h); // expected-error {{expected expression}}
----------------
cor3ntin wrote:
Can you also run that test in c++ mode so that we know it does not crash there either? thanks
https://github.com/llvm/llvm-project/pull/195377
More information about the cfe-commits
mailing list