diff --git a/flang/include/flang/Evaluate/constant.h b/flang/include/flang/Evaluate/constant.h --- a/flang/include/flang/Evaluate/constant.h +++ b/flang/include/flang/Evaluate/constant.h @@ -97,9 +97,9 @@ template ConstantBase(const A &x, Result res = Result{}) : result_{res}, values_{x} {} - template > - ConstantBase(A &&x, Result res = Result{}) - : result_{res}, values_{std::move(x)} {} + ConstantBase(ELEMENT &&x, Result res = Result{}) : result_{res} { + values_.push_back(std::move(x)); + } ConstantBase( std::vector &&, ConstantSubscripts &&, Result = Result{});