]> granicus.if.org Git - clang/commit
Propagate DLLAttr to friend re-declarations of member functions
authorStephan Bergmann <sbergman@redhat.com>
Thu, 8 Mar 2018 07:34:40 +0000 (07:34 +0000)
committerStephan Bergmann <sbergman@redhat.com>
Thu, 8 Mar 2018 07:34:40 +0000 (07:34 +0000)
commitc1fc31f7a37f79de870613c3e3d8aa5636c9522a
tree6be8ad020775b95aac4b99fae1ab521d5e6a5bdb
parent60470b7f65137a92b0f3fec1f2ed63c66c90645d
Propagate DLLAttr to friend re-declarations of member functions

...that have already been constructed (e.g., in inner classes) while parsing the
class definition.  They would otherwise lack any DLLAttr inherited from the
class, which are only set here (called from Sema::CheckCompletedClass) after the
class definition has been parsed completely.

Differential revision: https://reviews.llvm.org/D16632

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326990 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclCXX.cpp
test/CodeGenCXX/dllexport.cpp