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
771
771
and ``relatedalso `` comment commands.
772
772
- Clang now uses the location of the begin of the member expression for ``CallExpr ``
773
773
involving deduced ``this ``. (#GH116928)
774
+ - Fixed printout of AST that uses pack indexing expression. (#GH116486)
774
775
775
776
Miscellaneous Bug Fixes
776
777
^^^^^^^^^^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change @@ -2514,7 +2514,10 @@ void StmtPrinter::VisitSizeOfPackExpr(SizeOfPackExpr *E) {
2514
2514
}
2515
2515
2516
2516
void StmtPrinter::VisitPackIndexingExpr (PackIndexingExpr *E) {
2517
- OS << E->getPackIdExpression () << " ...[" << E->getIndexExpr () << " ]" ;
2517
+ PrintExpr (E->getPackIdExpression ());
2518
+ OS << " ...[" ;
2519
+ PrintExpr (E->getIndexExpr ());
2520
+ OS << " ]" ;
2518
2521
}
2519
2522
2520
2523
void 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