Skip to content

Commit

Permalink
Revert "[clang] Don't inherit dllimport/dllexport to exclude_from_exp…
Browse files Browse the repository at this point in the history
…licit_instantiation members during explicit instantiation (#65961)"

This uncovered a problem with virtual methods and
exclude_from_explicit_instantiation, see
#66909

Reverting until that's fixed.

> This is a continuation of https://reviews.llvm.org/D155713
>
> Fixes #40363

This reverts commit 84216d1.
  • Loading branch information
zmodem committed Sep 20, 2023
1 parent 96b1784 commit 700f683
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 82 deletions.
7 changes: 0 additions & 7 deletions clang/lib/Sema/SemaDeclCXX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6605,13 +6605,6 @@ void Sema::checkClassLevelDLLAttribute(CXXRecordDecl *Class) {
if (!VD && !MD)
continue;

if ((TSK == TSK_ExplicitInstantiationDeclaration ||
TSK == TSK_ExplicitInstantiationDefinition) &&
Member->hasAttr<ExcludeFromExplicitInstantiationAttr>()) {
// Skip members excluded from instantiation.
continue;
}

if (MD) {
// Don't process deleted methods.
if (MD->isDeleted())
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 700f683

Please sign in to comment.