When printing a base-specifier, print the ellipsis ("...") if it is a

pack expansion. Fixes PR9452.

llvm-svn: 130310
This commit is contained in:
Douglas Gregor 2011-04-27 17:07:55 +00:00
parent 90ebf258c6
commit 5fc8c9eafb
1 changed files with 3 additions and 0 deletions

View File

@ -650,6 +650,9 @@ void DeclPrinter::VisitCXXRecordDecl(CXXRecordDecl *D) {
if (AS != AS_none)
Print(AS);
Out << " " << Base->getType().getAsString(Policy);
if (Base->isPackExpansion())
Out << "...";
}
}