Go to file
Reid Kleckner 9386417047 Use the most recent previous decl to check if inline is added after a definition
This affects this test case:
  void foo();
  template <typename T> class C {
    friend inline void foo();
  };
  inline void foo() {}
  C<int> c;

Here, we instantiate the foo friend decl and add it to foo's redecl
chain. However, our previous decl pointer happens to reference the first
declaration of foo, which is not marked inline. When we check to see if
foo was already defined, we implicitly search all previous decls. We
should do the same for the inline check, instead of just checking this
particular previous decl.

Reviewers: rsmith

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

llvm-svn: 234374
2015-04-08 00:04:47 +00:00
clang Use the most recent previous decl to check if inline is added after a definition 2015-04-08 00:04:47 +00:00
clang-tools-extra [clang-tidy] Added a couple of tests for misc-static-assert. 2015-04-04 14:54:53 +00:00
compiler-rt sanitizer: new "strict_string_checks" run-time flag 2015-04-06 18:00:26 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Implement atanh builtin 2015-04-07 16:20:22 +00:00
libcxx In many places, there was an #ifdef/#else block that selected one of two implmentations of rebind_alloc based on whether or not we had template aliases. Create a helper struct to encapsulate that bit of logic, and replace all the ifdefs with uses of that struct. No functionality change intented. 2015-04-07 05:21:38 +00:00
libcxxabi [libcxxabi] Disallow Base to Derived conversions for catching pointers to members. 2015-04-06 23:03:01 +00:00
lld ELF: Minor simplification. 2015-04-07 22:46:01 +00:00
lldb Fix compilation failure caused by r234366. 2015-04-07 22:50:35 +00:00
llgo Add documentation for llgoi, update README 2015-04-05 23:32:13 +00:00
llvm AArch64: disallow "fmov sD, #-0.0" during assembly. 2015-04-07 22:49:47 +00:00
openmp Replace some unsafe API calls with safe alternatives on Windows, prepare code for similar actions on other platforms - wrap unsafe API calls into macros. 2015-04-02 13:27:08 +00:00
polly Fix polly build after LLVM r234263 2015-04-07 00:29:05 +00:00