[Bug fortran/59700] [4.8/4.9 Regression] Misleading/buggy runtime error message: Bad integer for item 0 in list input
sgk at troutmask dot apl.washington.edu
gcc-bugzilla@gcc.gnu.org
Fri Jan 10 23:11:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59700
--- Comment #18 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Fri, Jan 10, 2014 at 10:29:24PM +0000, dominiq at lps dot ens.fr wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59700
>
> --- Comment #16 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> I agree with Jerry that the errors with logical can be fixed later (AFAICT they
> are not a regression up to 4.3.1).
>
> I also think the error
>
> read(fd, *, err=31, iomsg=msg) i1, x2, a, x1
> 31 if (msg /= 'Bad repeat count in item 3 of list input') call abort
>
> is bogus (IIRC repeat count needs a '*').
>
I think that this error message may be ok. The
string was something like '1 2 3.4 g'. parse_logical
sees the initial 3 and looks for something like 3*T
or 3*.true. The value 3.4 is an invalid repeat count,
when it hits the . during the parsing it generates an
error.
More information about the Gcc-bugs
mailing list