localspook wrote: For code that compiles as C23 but doesn't want to use C23 features to stay compatible with earlier versions, clang provides the [`-Wpre-c23-compat`](https://clang.llvm.org/docs/DiagnosticsReference.html#wpre-c23-compat) warning. However, it seems that warning [doesn't cover your case](https://godbolt.org/z/cEh8n4sPc) (it seems to only warn on language features that are *invalid* in previous versions, not *change meaning* in previous versions). I wonder if we should extend that warning?
https://github.com/llvm/llvm-project/pull/161023 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
