[cfe-commits] r100878 - /cfe/trunk/lib/Sema/SemaDeclCXX.cpp
John McCall
rjmccall at apple.com
Fri Apr 9 12:01:14 PDT 2010
Author: rjmccall
Date: Fri Apr 9 14:01:14 2010
New Revision: 100878
URL: http://llvm.org/viewvc/llvm-project?rev=100878&view=rev
Log:
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.
Modified:
cfe/trunk/lib/Sema/SemaDeclCXX.cpp
Modified: cfe/trunk/lib/Sema/SemaDeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclCXX.cpp?rev=100878&r1=100877&r2=100878&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclCXX.cpp Fri Apr 9 14:01:14 2010
@@ -1076,6 +1076,9 @@
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);
More information about the cfe-commits
mailing list