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)
commit0feb0b9059792596e8386d030fa3d0aed9527798
tree320adaa17876e2c69cec839e128cb7937e4c3010
parent5bbcca6967acfdfd845cddeec4123ea0be3388e0
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

llvm-svn: 326990
clang/lib/Sema/SemaDeclCXX.cpp
clang/test/CodeGenCXX/dllexport.cpp