| Issue |
97447
|
| Summary |
Linker errors relating to vftable with C++20 modules on Windows
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
kamrann
|
The following simple repro will generate multiple definition linker errors on Windows (regardless of link.exe or lld-link.exe, so appears the issue is with clang emitting symbols for every TU importing the module in question).
```
// mod.mxx
export module mod;
export struct poly
{
virtual ~poly() = default;
};
```
```
// a.cxx
import mod;
poly p1;
```
```
// b.cxx
import mod;
poly p2;
int main() { return 0; }
```
Tested with multiple build systems (CMake and build2), on
- trunk (c44e9ff691a10cd900b93d9ff4e0ada355ca82d7)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs