]> granicus.if.org Git - clang/commitdiff
Back out bad piece of r80272. Will look at fixing this a different way.
authorEli Friedman <eli.friedman@gmail.com>
Thu, 27 Aug 2009 18:44:04 +0000 (18:44 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Thu, 27 Aug 2009 18:44:04 +0000 (18:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80273 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDecl.cpp
test/SemaTemplate/instantiate-friend-class.cpp

index 1e1b6e8b3e912a0f9a2078c993c616f229064418..045c12aab5485a3f237bcdf7d61b80eb83bd8680 100644 (file)
@@ -4311,10 +4311,7 @@ CreateNewDecl:
   New->setLexicalDeclContext(CurContext);
 
   // Set the access specifier.
-  // FIXME: This used to be skipped for friend tag decls, but it led to an
-  // assertion in Decl::CheckAccessDeclContext(); once various issues with
-  // friend class decls are sorted out, this should be revisited.
-  if (!Invalid)
+  if (!Invalid && TUK != TUK_Friend)
     SetMemberAccessSpecifier(New, PrevDecl, AS);
 
   if (TUK == TUK_Definition)
index 004bf1b74997dbcc3dcd1efa096412c1eace7186..424419d390ffdcf191edc26ab5affb633080ef96 100644 (file)
@@ -1,4 +1,6 @@
 // RUN: clang-cc -fsyntax-only -verify %s
+// XFAIL
+// PR4794
 
 template <class T> class X
 {