[clang] [C23][Parser] Diagnostic for attribute declaration where statement is required (PR #146224)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 2 11:22:44 PDT 2025
================
@@ -35,7 +36,7 @@ void f(int n) {
[[fallthrough]];
}
case 8:
- [[fallthrough]]; // expected-error {{does not directly precede switch label}}
+ [[fallthrough]]; // FIXME: The error {{does not directly precede switch label}} cannot reproduce in this translate unit, But it can be reproduced in a separate file.
----------------
yronglin wrote:
Fixed, it has the same reason as above.
https://github.com/llvm/llvm-project/pull/146224
More information about the cfe-commits
mailing list