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]

[fortran,patch] Properly match character kinds


Hi all,

This patch fixes PR33529: we currently don't do proper matching of character kinds, because we expect them to be litteral integer constants and, though luck, that's certainly not guaranteed :) So this borrows bits of code from gfc_match_kind_spec() to do it properly, calling gfc_match_init_expr() in turn. I copied some code around instead of simply sharing it, because there are some important differences between the matching of character kinds and integer/ logical/real/complex kinds, so it looked better that way.

Regtested on x86_64-linux, OK for mainline?

FX


Attachment: pr33529.ChangeLog
Description: Binary data

Attachment: pr33529.diff
Description: Binary data


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