From 34a99e7ef27d40fd116061249ae2c4eee6486c01 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 27 Apr 2011 17:07:55 +0000 Subject: [PATCH] When printing a base-specifier, print the ellipsis ("...") if it is a pack expansion. Fixes PR9452. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130310 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/DeclPrinter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/AST/DeclPrinter.cpp b/lib/AST/DeclPrinter.cpp index 973ac6d5af..556fc72cec 100644 --- a/lib/AST/DeclPrinter.cpp +++ b/lib/AST/DeclPrinter.cpp @@ -650,6 +650,9 @@ void DeclPrinter::VisitCXXRecordDecl(CXXRecordDecl *D) { if (AS != AS_none) Print(AS); Out << " " << Base->getType().getAsString(Policy); + + if (Base->isPackExpansion()) + Out << "..."; } } -- 2.50.1