[flang-commits] [clang] [libc] [llvm] [compiler-rt] [clang-tools-extra] [libcxx] [flang] [C23] Complete support for WG14 N2508 (PR #71398)
Aaron Ballman via flang-commits
flang-commits at lists.llvm.org
Mon Nov 6 06:51:23 PST 2023
================
@@ -299,6 +299,12 @@ def note_missing_selector_name : Note<
def note_force_empty_selector_name : Note<
"or insert whitespace before ':' to use %0 as parameter name "
"and have an empty entry in the selector">;
+def ext_c_label_followed_by_declaration : ExtWarn<
+ "label followed by a declaration is a C23 extension">,
+ InGroup<C23>;
+def warn_c23_compat_label_followed_by_declaration : Warning<
+ "label followed by a declaration is incompatible with C standards before "
+ "C23">, InGroup<CPre23Compat>, DefaultIgnore;
----------------
AaronBallman wrote:
Good catch, those slipped through the cracks. I'll add the tests shortly.
https://github.com/llvm/llvm-project/pull/71398
More information about the flang-commits
mailing list