[flang-commits] [flang] [flang] Do not leave length parameters uninitialized in descriptor addendums (PR #81858)
Peter Klausler via flang-commits
flang-commits at lists.llvm.org
Tue Feb 20 07:40:30 PST 2024
================
@@ -99,7 +99,7 @@ class DescriptorAddendum {
public:
explicit RT_API_ATTRS DescriptorAddendum(
const typeInfo::DerivedType *dt = nullptr)
- : derivedType_{dt} {}
+ : derivedType_{dt}, len_{0} {}
----------------
klausler wrote:
Can this initializer be placed instead on the component declaration? That's slightly better coding practice.
https://github.com/llvm/llvm-project/pull/81858
More information about the flang-commits
mailing list