Closed
Description
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 (c44e9ff)
Edit: appears to be a regression, problem does not show up on 18.1.8 (3b5b5c1).