This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, Fortran, F03] PR 40882: infinite recursion in gfc_get_derived_type with PPC returning derived type


Hi Janus,

Janus Weil wrote:
this is fixing a small problem with procedure pointer components
returning a derived type. If the result type is the same as the type
which contains the PPC, gfc_get_derived_type would enter an infinite
recursion loop. The patch handles this case in a similar fashion as
for pointer components, i.e. first making sure all the backend_decl's
of derived types are there, and then using those backend_decl's
instead of recursing to gfc_get_derived_type.

Regtested on x86_64-unknown-linux-gnu. Ok for trunk?

Ok. Thanks for the fix!


Daniel

--
Done:  Arc-Bar-Cav-Ran-Rog-Sam-Tou-Val-Wiz
To go: Hea-Kni-Mon-Pri


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]