]> granicus.if.org Git - clang/commit
In mergeVisibilityWithMin, let an implicit hidden symbol take precedence over
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 19 Apr 2012 05:34:51 +0000 (05:34 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 19 Apr 2012 05:34:51 +0000 (05:34 +0000)
commit1c7eed7e6ea2b357aa94581a90018ddbdcb41cbf
tree6c66435c8227cfbacc07162d7d10ebf0f9c82785
parentd70d20a361b877d7156291acd1a83b5b1ac2655a
In mergeVisibilityWithMin, let an implicit hidden symbol take precedence over
an explicit default one. This means that with -fvisibility hidden we
now produce a hidden symbol for

template <typename T>
class DEFAULT foo {
  void bar() {}
};
class zed {};
template class foo<zed>;

This matches the behaviour of gcc 4.7.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155102 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
test/CodeGenCXX/visibility.cpp