]> gcc.gnu.org Git - gcc.git/commit
Fortran: Generate new charlens for shared symbol typespecs [PR89462]
authorPaul Thomas <pault@gcc.gnu.org>
Thu, 25 Apr 2024 05:52:31 +0000 (06:52 +0100)
committerPaul Thomas <pault@gcc.gnu.org>
Thu, 25 Apr 2024 05:52:31 +0000 (06:52 +0100)
commit1fd5a07444776d76cdd6a2eee7df0478201197a5
tree3b01bd2af34693e65f6dc681423e04982f9dee79
parent09680e3ee7d72978b493dd4127ce2e769f96a45e
Fortran: Generate new charlens for shared symbol typespecs [PR89462]

2024-04-25  Paul Thomas  <pault@gcc.gnu.org>
    Jakub Jelinek  <jakub@gcc.gnu.org>

gcc/fortran
PR fortran/89462
* decl.cc (build_sym): Add an extra argument 'elem'. If 'elem'
is greater than 1, gfc_new_charlen is called to generate a new
charlen, registered in the symbol namespace.
(variable_decl, enumerator_decl): Set the new argument in the
calls to build_sym.

gcc/testsuite/
PR fortran/89462
* gfortran.dg/pr89462.f90: New test.
gcc/fortran/decl.cc
gcc/testsuite/gfortran.dg/pr89462.f90 [new file with mode: 0644]
This page took 0.063536 seconds and 5 git commands to generate.