[PATCH] fortran/67802 -- Numeric constant character length must ...

Steve Kargl sgk@troutmask.apl.washington.edu
Thu Oct 1 19:45:00 GMT 2015


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



More information about the Gcc-patches mailing list