This is an archive of the discontinued LLVM Phabricator instance.

[MinGW] Do dllexport inline methods in template instantiation
ClosedPublic

Authored by mstorsjo on Apr 26 2019, 12:49 AM.

Details

Summary

Normally, in MinGW mode, inline methods aren't dllexported.

However, in the case of a dllimported template instantiation, the inline methods aren't instantiated locally, but referenced from the instantiation. Therefore, those methods also need to be dllexported, in the case of an instantiation.

GCC suffers from the same issue, reported at [1], but the issue is still unresolved there.

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89088

Diff Detail

Repository
rC Clang

Event Timeline

mstorsjo created this revision.Apr 26 2019, 12:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 26 2019, 12:49 AM
hans accepted this revision.Apr 26 2019, 2:08 AM

lgtm

This revision is now accepted and ready to land.Apr 26 2019, 2:08 AM
This revision was automatically updated to reflect the committed changes.