Skip to content

Commit ed572aa

Browse files
[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.
1 parent 9658c55 commit ed572aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flang/include/flang/Semantics/symbol.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ class TypeParamDetails {
600600
public:
601601
TypeParamDetails() = default;
602602
TypeParamDetails(const TypeParamDetails &) = default;
603+
TypeParamDetails &operator=(const TypeParamDetails &) = default;
603604
std::optional<common::TypeParamAttr> attr() const { return attr_; }
604605
TypeParamDetails &set_attr(common::TypeParamAttr);
605606
MaybeIntExpr &init() { return init_; }

0 commit comments

Comments
 (0)