Suppress access control diagnostics when looking up a base or member name

fails to find a type.  There are no cases where it's valid for this to produce
an error.

llvm-svn: 100878
This commit is contained in:
John McCall 2010-04-09 19:01:14 +00:00
parent 35e856a8ed
commit da6841bade
1 changed files with 3 additions and 0 deletions

View File

@ -1076,6 +1076,9 @@ Sema::ActOnMemInitializer(DeclPtrTy ConstructorD,
if (!TyD) {
if (R.isAmbiguous()) return true;
// We don't want access-control diagnostics here.
R.suppressDiagnostics();
if (SS.isSet() && isDependentScopeSpecifier(SS)) {
bool NotUnknownSpecialization = false;
DeclContext *DC = computeDeclContext(SS, false);