[clang] [C23] Implement WG14 N3037 (PR #132939)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 26 05:09:22 PDT 2025
================
@@ -478,16 +478,24 @@ def warn_odr_function_type_inconsistent : Warning<
"external function %0 declared with incompatible types in different "
"translation units (%1 vs. %2)">,
InGroup<ODR>;
+def err_odr_attr_inconsistent : Error<
+ "attribute %0 is incompatible%select{| in different translation units}1">;
----------------
AaronBallman wrote:
Good catch, this is dead code and can be removed
https://github.com/llvm/llvm-project/pull/132939
More information about the cfe-commits
mailing list