================ @@ -376,6 +376,9 @@ ExprDependence clang::computeDependence(PackExpansionExpr *E) { ExprDependence clang::computeDependence(PackIndexingExpr *E) { ExprDependence D = E->getIndexExpr()->getDependence(); + if (D & ExprDependence::Value) + D |= ExprDependence::TypeInstantiation; ---------------- zyn0217 wrote:
Does it mean "if the index expression is value-dependent, then the whole `PackIndexingExpr` is type-dependent despite its expressions"? For example, ```cpp template <int N, int... E> auto foo() { return E...[N]; } ``` Should `E...[N]` be treated as type-dependent regardless of the result being always an int? https://github.com/llvm/llvm-project/pull/91933 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits