This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] fortran/67802 -- Numeric constant character length must ...
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: FX <fxcoudert at gmail dot com>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Thu, 1 Oct 2015 12:45:21 -0700
- Subject: Re: [PATCH] fortran/67802 -- Numeric constant character length must ...
- Authentication-results: sourceware.org; auth=none
- References: <20151001185454 dot GA7728 at troutmask dot apl dot washington dot edu> <80957D24-B73A-4A24-AEBA-099B4DBAAE9F at gmail dot com>
On Thu, Oct 01, 2015 at 09:19:15PM +0200, FX wrote:
> > 2015-10-01 Steven G. Kargl <kargl@gcc.gnu.org>
> >
> > PR fortran/67802
> > * decl.c (add_init_expr_to_sym): Numeric constant for character
> > length must be an INTEGER.
> >
> > 2015-10-01 Steven G. Kargl <kargl@gcc.gnu.org>
> >
> > PR fortran/67802
> > * gfortran.dg/pr67802.f90: New test.
>
> OK, but not with that error message. We currently don???t use
> the ???shorthand??? standard notation (like "scalar-int-expr???)
> in our error messages, and we should keep that consistent.
> So I would go with ???character length should be of integer
> type??? or something like that.
>
Well, ahem, gfortran does have several error messages that use the
standard notation. I know. I wrote some of them. :-)
I'll simply change it to "Expecting an INTEGER at %L"
--
Steve