File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -771,6 +771,7 @@ Bug Fixes to AST Handling
771771 and ``relatedalso `` comment commands.
772772- Clang now uses the location of the begin of the member expression for ``CallExpr ``
773773 involving deduced ``this ``. (#GH116928)
774+ - Fixed printout of AST that uses pack indexing expression. (#GH116486)
774775
775776Miscellaneous Bug Fixes
776777^^^^^^^^^^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change @@ -2514,7 +2514,10 @@ void StmtPrinter::VisitSizeOfPackExpr(SizeOfPackExpr *E) {
25142514}
25152515
25162516void StmtPrinter::VisitPackIndexingExpr (PackIndexingExpr *E) {
2517- OS << E->getPackIdExpression () << " ...[" << E->getIndexExpr () << " ]" ;
2517+ PrintExpr (E->getPackIdExpression ());
2518+ OS << " ...[" ;
2519+ PrintExpr (E->getIndexExpr ());
2520+ OS << " ]" ;
25182521}
25192522
25202523void StmtPrinter::VisitSubstNonTypeTemplateParmPackExpr (
Original file line number Diff line number Diff line change 1+ // RUN: %clang_cc1 -ast-print -std=c++2c %s | FileCheck %s
2+
3+ template <class ... T, unsigned N>
4+ auto foo (T ...params) {
5+ return params...[N];
6+ }
7+
8+ // CHECK: template <class ...T, unsigned int N> auto foo(T ...params) {
9+ // CHECK-NEXT: return params...[N];
You can’t perform that action at this time.
0 commit comments