forked from OSchip/llvm-project
parent
81e4e4e5cc
commit
6f0cd6e866
|
@ -1917,13 +1917,6 @@ Sema::ActOnForwardClassDeclaration(SourceLocation AtClassLoc,
|
|||
NamedDecl *PrevDecl
|
||||
= LookupSingleName(TUScope, IdentList[i], IdentLocs[i],
|
||||
LookupOrdinaryName, ForRedeclaration);
|
||||
if (PrevDecl && PrevDecl->isTemplateParameter()) {
|
||||
// Maybe we will complain about the shadowed template parameter.
|
||||
DiagnoseTemplateParameterShadow(AtClassLoc, PrevDecl);
|
||||
// Just pretend that we didn't see the previous declaration.
|
||||
PrevDecl = 0;
|
||||
}
|
||||
|
||||
if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
|
||||
// GCC apparently allows the following idiom:
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue