This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

[Patch, Fortran] PR34254 Fix character(kind_par) function with imported/use-associated kind_par


A while ago Paul checked in a patch, which allows:

integer(kind_par) function foo()
   use module, only: kind_par

However, the patch did not support

character(kind=kind_par) function bar()
   use module, only: kind_par

This patch now implements it by copying the relevant bits from
gfc_match_kind_spec.

The gfc_match_kind_spec part was needed as
match_deferred_characteristics calls gfc_match_kind_spec; alternatively,
one can change it to call match_char_kind instead.


Build and regtested on x86-64-linux.
OK for the trunk?

Tobias


PS: There are three related PRs, 34429, 34431 and 34432, which need also
to be patched. Compared with the other 6 Fortran 95 PRs these should be
relatively easy.

Attachment: kind.diff
Description: application/unknown


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