[Bug fortran/97652] [11 Regression] New gfortran.dg/pdt_14.f03 failure after g:617695cdc2b3d950f1e4deb5ea85d5cc302943f4
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Nov 6 16:57:06 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97652
--- Comment #18 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Tobias Burnus
<burnus@gcc.gnu.org>:
https://gcc.gnu.org/g:542b564343fdb896ede9c9d5e32d45dcd96b2a00
commit r9-9028-g542b564343fdb896ede9c9d5e32d45dcd96b2a00
Author: Tobias Burnus <tobias@codesourcery.com>
Date: Fri Nov 6 08:26:51 2020 +0100
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)
More information about the Gcc-bugs
mailing list