[flang-commits] [flang] [flang] Add missing copy constructor (PR #139966)
via flang-commits
flang-commits at lists.llvm.org
Wed May 14 14:30:25 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-semantics
Author: Asher Mancinelli (ashermancinelli)
<details>
<summary>Changes</summary>
On some compilers the implicit copy constructor was issuing a warning.
---
Full diff: https://github.com/llvm/llvm-project/pull/139966.diff
1 Files Affected:
- (modified) flang/include/flang/Semantics/symbol.h (+1)
``````````diff
diff --git a/flang/include/flang/Semantics/symbol.h b/flang/include/flang/Semantics/symbol.h
index 97c1e30631840..4cded64d170cd 100644
--- a/flang/include/flang/Semantics/symbol.h
+++ b/flang/include/flang/Semantics/symbol.h
@@ -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_; }
``````````
</details>
https://github.com/llvm/llvm-project/pull/139966
More information about the flang-commits
mailing list