]> granicus.if.org Git - clang/commit
Do not give implicitly-defined virtual members functions
authorDouglas Gregor <dgregor@apple.com>
Thu, 6 May 2010 23:13:35 +0000 (23:13 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 6 May 2010 23:13:35 +0000 (23:13 +0000)
commitb0769101ac05792ccc539bc7359b1927b3fd4aca
treeeecf9f967ad8a69e8cebc92b83a497a49ce23f15
parentb0e921622100486175448a7554909d7f019d21ea
Do not give implicitly-defined virtual members functions
available_externally linkage, since they may not have been given a
strong definition in another translation unit. Without this patch, the
following test case fails to link with a GCC-compiled libstdc++:

  #include <sstream>
  int main() { std::basic_stringbuf<char> bs; }

Fixes the last problem with the Boost.IO library.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103208 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
test/CodeGenCXX/template-linkage.cpp