]> granicus.if.org Git - clang/commitdiff
Disable Decl::CheckAccessDeclContext() temporarily.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 2 Jul 2010 11:55:44 +0000 (11:55 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 2 Jul 2010 11:55:44 +0000 (11:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107478 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/DeclBase.cpp

index 104df7ae84f3372fa26af5b3e32205ef96e29afd..1c41e5a659fccbd8f7368c7f0e0d566234b56dd5 100644 (file)
@@ -464,14 +464,16 @@ SourceLocation Decl::getBodyRBrace() const {
 
 #ifndef NDEBUG
 void Decl::CheckAccessDeclContext() const {
+  // FIXME: Disable this until rdar://8146294 "access specifier for inner class
+  // templates is not set or checked" is fixed.
+  return;
   // Suppress this check if any of the following hold:
   // 1. this is the translation unit (and thus has no parent)
   // 2. this is a template parameter (and thus doesn't belong to its context)
-  // 3. this is a ParmVarDecl (which can be in a record context during
-  //    the brief period between its creation and the creation of the
-  //    FunctionDecl)
-  // 4. the context is not a record
+  // 3. the context is not a record
+  // 4. it's invalid
   if (isa<TranslationUnitDecl>(this) ||
+      isa<TemplateTypeParmDecl>(this) ||
       !isa<CXXRecordDecl>(getDeclContext()) ||
       isInvalidDecl())
     return;