]> granicus.if.org Git - clang/commit
Revert "Mark instantiated function decls as inline specified if any pattern is"
authorReid Kleckner <reid@kleckner.net>
Tue, 7 Apr 2015 20:46:51 +0000 (20:46 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 7 Apr 2015 20:46:51 +0000 (20:46 +0000)
commit1599cabb358e8e7f45b9b66686e2477931a1ca39
tree87e6d7a6f45f4f465d95b8eb994fb1d9bf197542
parent998dc53a388cdf88f87cd9df41af49946f7ed09d
Revert "Mark instantiated function decls as inline specified if any pattern is"

It breaks down on this test case:
  void foo();
  template <typename T> class C {
    friend void foo();
  };
  inline void foo() {}
  C<int> c;

We shouldn't be marking the instantiation of the friend decl of foo as
inline-specified. It may be possible to fix this by determining if the
full definition is part of the current template, but it seems better to
rever tot green until we come up with a full solution.

This reverts commit r233817, as well as follow-ups r233820 and r233821.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@234355 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/CodeGenCXX/inlinehint.cpp [deleted file]