forked from OSchip/llvm-project
Speculatively revert r295118 to see if it's what's causing the modules selfhost buildbots to fail.
llvm-svn: 295146
This commit is contained in:
parent
0609acc10d
commit
650e5b28d2
|
@ -3023,10 +3023,8 @@ static TagDecl *getInterestingTagDecl(TagDecl *decl) {
|
|||
if (I->isCompleteDefinition() || I->isBeingDefined())
|
||||
return I;
|
||||
}
|
||||
// If there's no definition (not even in progress), return the most recent
|
||||
// declaration. This is important for template specializations, in order to
|
||||
// pick the declaration with the most complete TemplateSpecializationKind.
|
||||
return decl->getMostRecentDecl();
|
||||
// If there's no definition (not even in progress), return what we have.
|
||||
return decl;
|
||||
}
|
||||
|
||||
TagDecl *TagType::getDecl() const {
|
||||
|
|
|
@ -57,14 +57,3 @@ template<typename T> struct Helper {
|
|||
template<typename T> void Helper<T>::func<2>() {} // expected-error {{cannot specialize a member}} \
|
||||
// expected-error {{no function template matches}}
|
||||
}
|
||||
|
||||
namespace b35070233 {
|
||||
template <typename T> struct Cls {
|
||||
static void f() {}
|
||||
};
|
||||
|
||||
void g(Cls<int>);
|
||||
|
||||
template<> struct Cls<int>; // expected-note {{forward declaration}}
|
||||
template<> void Cls<int>::f(); // expected-error {{incomplete type}}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue