Just ignore friend templates for now so we won't crash.

llvm-svn: 81536
This commit is contained in:
Anders Carlsson 2009-09-11 17:54:14 +00:00
parent 10e9bffde3
commit af494faa57
1 changed files with 6 additions and 3 deletions

View File

@ -1014,10 +1014,13 @@ void Parser::ParseCXXClassMemberDeclaration(AccessSpecifier AS,
if (Tok.is(tok::semi)) {
ConsumeToken();
// FIXME: Friend templates?
if (DS.isFriendSpecified())
if (DS.isFriendSpecified()) {
// FIXME: Friend templates are ignored for now.
if (TemplateInfo.Kind != ParsedTemplateInfo::NonTemplate)
return;
Actions.ActOnFriendDecl(CurScope, &DS, /*IsDefinition*/ false);
else
} else
Actions.ParsedFreeStandingDeclSpec(CurScope, DS);
return;