diff --git a/flang/lib/FIR/mixin.h b/flang/lib/FIR/mixin.h index 5a98e85d986c..9ec91055dc26 100644 --- a/flang/lib/FIR/mixin.h +++ b/flang/lib/FIR/mixin.h @@ -69,7 +69,8 @@ template struct SumTypeCopyMixin { template struct ProductTypeMixin { using ProductTypeTrait = std::true_type; ProductTypeMixin(const Ts &... x) : t{x...} {} - ProductTypeMixin(Ts &&... x) : t{std::forward(x)...} {} + template + ProductTypeMixin(As &&... x) : t{std::forward(x)...} {} ProductTypeMixin(ProductTypeMixin &&) = default; ProductTypeMixin &operator=(ProductTypeMixin &&) = default; ProductTypeMixin(const ProductTypeMixin &) = delete;