Open danix800 opened 1 month ago
namespace { struct A; }
namespace { struct A; }
Struct A in the same TU are linked together, but when imported from another TU they are not.
@llvm/issue-subscribers-clang-static-analyzer
Author: Ding Fei (danix800)
namespace { struct A; } namespace { struct A; }
Struct A in the same TU are linked together, but when imported from another TU they are not.
Structs in anonymous namespace from different TUs should not be linked.
I think these two structs should be marked as conflicting to each other too. Thus types depending on them are not equivalent too. See potential fix #112534
Testcases:
Crash stacktrace: