reordering and redefinition issues still may linger,
I plan to nail them next
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112333
91177308-0d34-0410-b5e6-
96231b3b80d8
else
PendingInstantiations.push_back(std::make_pair(Function, Loc));
}
- }
+ } else // Walk redefinitions, as some of them may be instantiable.
+ for (FunctionDecl::redecl_iterator i(Function->redecls_begin()),
+ e(Function->redecls_end()); i != e; ++i) {
+ if (i->isImplicitlyInstantiable())
+ MarkDeclarationReferenced(Loc, *i);
+ }
// FIXME: keep track of references to static functions
// RUN: %clang %s -S -emit-llvm -o - | grep -e "define linkonce_odr.*_ZN6pr8007lsERNS_11std_ostreamERKNS_8StreamerINS_3FooEEE"
-// XFAIL: *
namespace pr8007 {