]> granicus.if.org Git - clang/commit
Don't allow dllimport/export on classes with internal linkage (PR21399)
authorHans Wennborg <hans@hanshq.net>
Mon, 3 Nov 2014 16:09:16 +0000 (16:09 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 3 Nov 2014 16:09:16 +0000 (16:09 +0000)
commit6d043706411e6068a4934d977803a6b35baa6f87
tree4611060eacf2030453a1005084191e5599ac3266
parentc29a6cac52d77bdf3169a02da78667d3672b34f1
Don't allow dllimport/export on classes with internal linkage (PR21399)

Trying to import or export such classes doesn't make sense, and Clang
would assert trying to export vtables for them.

This is consistent with how we treat functions with internal linkage,
but it is stricter than MSVC so we may have to back down if it breaks
real code.

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