[flang] Add missing copy assignment operator (#139966)

On Clang 17 the implicit copy assignment operator was issuing a warning because of the user-declared copy constructor. Declare the copy assignment operator as default.
This commit is contained in:
Asher Mancinelli 2025-05-15 07:06:50 -07:00 committed by GitHub
parent 9658c55116
commit ed572aaac8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -600,6 +600,7 @@ class TypeParamDetails {
public:
TypeParamDetails() = default;
TypeParamDetails(const TypeParamDetails &) = default;
TypeParamDetails &operator=(const TypeParamDetails &) = default;
std::optional<common::TypeParamAttr> attr() const { return attr_; }
TypeParamDetails &set_attr(common::TypeParamAttr);
MaybeIntExpr &init() { return init_; }