This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[fortran,patch] Properly match character kinds
- From: FX Coudert <fxcoudert at gmail dot com>
- To: "fortran at gcc dot gnu dot org Fortran" <fortran at gcc dot gnu dot org>, gcc-patches list <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 30 Sep 2007 14:52:41 +0100
- Subject: [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