]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix type-decl for PDT / wrong-code pdt_14.f03 issue [PR97652]
authorTobias Burnus <tobias@codesourcery.com>
Fri, 6 Nov 2020 07:26:51 +0000 (08:26 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Fri, 6 Nov 2020 13:57:13 +0000 (14:57 +0100)
commit099857318ca92210e34cfb8975c5c58c00bf1587
tree6411489838275335053914b41fe906a15b447ab6
parentd2612abf07557d641dc311e0d1d0e77fc7e4f295
Fortran: Fix type-decl for PDT / wrong-code pdt_14.f03 issue [PR97652]

Parameterized derived types are handled in a special way and start with 'Pdt'.
If the 'P' is not uppercase, gfc_get_derived_type (which calls
gfc_get_module_backend_decl) does not find the existing declaration and
builds a new type. The middle end then sees those types as being different
and nonalising, creating an endless loop for pdt_14.f03.

gcc/fortran/ChangeLog:

PR fortran/97652
* module.c (mio_symbol): Fix symbol name for pdt_type.

(cherry picked from commit c283a711c850efaab4fe3bca5ef7200eb854bba1)
gcc/fortran/module.c