================ @@ -831,7 +831,7 @@ class PackDeductionScope { if (IsPartiallyExpanded) PackElements += NumPartialPackArgs; else if (IsExpanded) - PackElements += *FixedNumExpansions; + PackElements += FixedNumExpansions.value_or(1); ---------------- tschuett wrote:
``` .value_or(1) ``` cannot be the solution. `FixedNumExpansions` is nullopt. Why is `1` an improvement over nullopt? https://github.com/llvm/llvm-project/pull/88637 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits