@@ -154,17 +154,12 @@ class SpecialBinding {
154154 RT_API_ATTRS bool IsArgDescriptor (int zeroBasedArg) const {
155155 return (isArgDescriptorSet_ >> zeroBasedArg) & 1 ;
156156 }
157- RT_API_ATTRS bool IsTypeBound () const { return isTypeBound_ != 0 ; }
157+ RT_API_ATTRS bool isTypeBound () const { return isTypeBound_; }
158158 RT_API_ATTRS bool IsArgContiguous (int zeroBasedArg) const {
159159 return (isArgContiguousSet_ >> zeroBasedArg) & 1 ;
160160 }
161- template <typename PROC>
162- RT_API_ATTRS PROC GetProc (const Binding *bindings = nullptr ) const {
163- if (bindings && isTypeBound_ > 0 ) {
164- return reinterpret_cast <PROC>(bindings[isTypeBound_ - 1 ].proc );
165- } else {
166- return reinterpret_cast <PROC>(proc_);
167- }
161+ template <typename PROC> RT_API_ATTRS PROC GetProc () const {
162+ return reinterpret_cast <PROC>(proc_);
168163 }
169164
170165 FILE *Dump (FILE *) const ;
@@ -198,8 +193,6 @@ class SpecialBinding {
198193 // When false, the defined I/O subroutine must have been
199194 // called via a generic interface, not a generic TBP.
200195 std::uint8_t isArgDescriptorSet_{0 };
201- // When a special binding is type-bound, this is its binding's index (plus 1,
202- // so that 0 signifies that it's not type-bound).
203196 std::uint8_t isTypeBound_{0 };
204197 // True when a FINAL subroutine has a dummy argument that is an array that
205198 // is CONTIGUOUS or neither assumed-rank nor assumed-shape.
@@ -247,7 +240,6 @@ class DerivedType {
247240 RT_API_ATTRS bool noFinalizationNeeded () const {
248241 return noFinalizationNeeded_;
249242 }
250- RT_API_ATTRS bool noDefinedAssignment () const { return noDefinedAssignment_; }
251243
252244 RT_API_ATTRS std::size_t LenParameters () const {
253245 return lenParameterKind ().Elements ();
@@ -330,7 +322,6 @@ class DerivedType {
330322 bool noInitializationNeeded_{false };
331323 bool noDestructionNeeded_{false };
332324 bool noFinalizationNeeded_{false };
333- bool noDefinedAssignment_{false };
334325};
335326
336327} // namespace Fortran::runtime::typeInfo
0 commit comments