| Issue |
56487
|
| Summary |
Implement -Wlto-type-mismatch?
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
thesamesam
|
GCC [supports](https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html) -Wlto-type-mismatch to warn when the same type is redefined across different units:
> -Wno-lto-type-mismatch
>
> During the link-time optimization, do not warn about type mismatches in global declarations from different compilation units. >Requires -flto to be enabled. Enabled by default.
Clang doesn't support this flag and I don't think I see an [equivalent](https://clang.llvm.org/docs/DiagnosticsReference.html) on the list.
Does it make sense for Clang to implement an equivalent flag? Or does it have one I'm missing? Thanks!
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs