Back out bad piece of r80272. Will look at fixing this a different way.

llvm-svn: 80273
This commit is contained in:
Eli Friedman 2009-08-27 18:44:04 +00:00
parent 7a61407d0b
commit 1e97108bdd
2 changed files with 3 additions and 4 deletions

View 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)

View File

@ -1,4 +1,6 @@
// RUN: clang-cc -fsyntax-only -verify %s
// XFAIL
// PR4794
template <class T> class X
{