forked from OSchip/llvm-project
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:
parent
35e856a8ed
commit
da6841bade
|
@ -1076,6 +1076,9 @@ Sema::ActOnMemInitializer(DeclPtrTy ConstructorD,
|
||||||
if (!TyD) {
|
if (!TyD) {
|
||||||
if (R.isAmbiguous()) return true;
|
if (R.isAmbiguous()) return true;
|
||||||
|
|
||||||
|
// We don't want access-control diagnostics here.
|
||||||
|
R.suppressDiagnostics();
|
||||||
|
|
||||||
if (SS.isSet() && isDependentScopeSpecifier(SS)) {
|
if (SS.isSet() && isDependentScopeSpecifier(SS)) {
|
||||||
bool NotUnknownSpecialization = false;
|
bool NotUnknownSpecialization = false;
|
||||||
DeclContext *DC = computeDeclContext(SS, false);
|
DeclContext *DC = computeDeclContext(SS, false);
|
||||||
|
|
Loading…
Reference in New Issue