Skip to content

clang-cl rejects dllimport on explicit member template specialization #21780

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 Oct 29, 2014 · 1 comment
Open

clang-cl rejects dllimport on explicit member template specialization #21780

zmodem opened this issue Oct 29, 2014 · 1 comment
Labels
bugzilla Issues migrated from bugzilla clang Clang issues not falling into any other category

Comments

@zmodem
Copy link
Collaborator

zmodem commented Oct 29, 2014

Bugzilla Link 21406
Version unspecified
OS Windows 2000
CC @zahiraam

Extended Description

Consider:

struct S {
template void def() {}
};

struct T {};

template<> __declspec(dllimport) void S::def() {}

clang-cl rejects this, but MSVC accepts it. In test/SemaCXX/dllimport.cpp, there are comments suggesting we should only reject this for MinGW, but we end up rejecting it always.

(Issue 210136 may or may not be related)

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 9, 2021
@zmodem
Copy link
Collaborator Author

zmodem commented Sep 27, 2022

(Issue 210136 may or may not be related)

That should've been http://llvm.org/PR20136, a.k.a. #20510 after the github migration.

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