[clang] [Clang][Parser] Report error when attribute missing ]] followed by ;; (PR #187580)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 31 07:41:36 PDT 2026
================
@@ -0,0 +1,15 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+// expected-note at +1 {{to match this '{'}}
+void a(int i) {
+ switch(i) {
+ case 1:
+ // expected-error at +2 {{expected ']'}}
+ // expected-error at +3 {{expected ']'}}
+ [[fallthrough;;
+ case 2:
+ ;
+ };
+ // expected-error at +2 {{expected statement}}
----------------
erichkeane wrote:
This is a weird degredation of behavior. What causes this?
https://github.com/llvm/llvm-project/pull/187580
More information about the cfe-commits
mailing list