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

Tobias Burnus burnus@net-b.de
Tue Dec 11 13:57:00 GMT 2007


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kind.diff
Type: application/unknown
Size: 2876 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20071211/2682642e/attachment.bin>


More information about the Gcc-patches mailing list