]> granicus.if.org Git - clang/commit
Don't drop dllimport from qualified friend redeclarations (PR20512)
authorHans Wennborg <hans@hanshq.net>
Mon, 4 Aug 2014 20:54:39 +0000 (20:54 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 4 Aug 2014 20:54:39 +0000 (20:54 +0000)
commit869e486aa633acd90b97b490e0a9aeb87cf6776d
treed172f0e104909c791e2fbd1b2bd6043819a4b7fe
parent77cab4ab985c7045cadb30888a30e30a40297968
Don't drop dllimport from qualified friend redeclarations (PR20512)

This matches MSVC's logic, which seems to be that when the friend
declaration is qualified, it cannot be a declaration of a new symbol
and so the dll linkage doesn't change.

Differential Revision: http://reviews.llvm.org/D4764

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214774 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/CodeGenCXX/dllimport.cpp
test/SemaCXX/dllimport.cpp