This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [fortran,patch] Properly match character kinds
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: FX Coudert <fxcoudert at gmail dot com>
- Cc: "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: Wed, 3 Oct 2007 21:02:38 -0700
- Subject: Re: [fortran,patch] Properly match character kinds
- References: <D9D5FF15-BB03-4D45-998B-EE61AA1C29FB@gmail.com>
On Sun, Sep 30, 2007 at 02:52:41PM +0100, FX Coudert wrote:
>
> 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.
>
OK.
--
Steve