Skip to content

dllimport on explicit instantiation of dllexport function template is ignored #20510

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
zmodem opened this issue Jun 26, 2014 · 0 comments
Open
Labels
bugzilla Issues migrated from bugzilla clang Clang issues not falling into any other category

Comments

@zmodem
Copy link
Collaborator

zmodem commented Jun 26, 2014

Bugzilla Link 20136
Version trunk
OS Windows NT

Extended Description

In this example:

template void __declspec(dllexport) f() { };
template void __declspec(dllimport) f();
void foo() { f(); }

We ignore dllimport on the f instantiation, and end up exporting it, which is the opposite of what MSVC does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang Clang issues not falling into any other category
Projects
None yet
Development

No branches or pull requests

1 participant