[Bug fortran/59700] [4.8/4.9 Regression] Misleading/buggy runtime error message: Bad integer for item 0 in list input

dominiq at lps dot ens.fr gcc-bugzilla@gcc.gnu.org
Thu Jan 9 20:41:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59700

--- Comment #7 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> I've started to write a testcase, but the counting of items is
> still wrong.  Look for the XXX comment in the following code.
> ...

Confirmed. Replacing the 'call abort' with 'print *, msg', 4.7.4 (r206161)
gives

[Book15] f90/bug% /opt/gcc/gcc4.7c/bin/gfortran pr59700_1_db.f90
[Book15] f90/bug% a.out
 Bad logical value while reading item 0                                         
[Book15]

So the problem with logical seems older than r203086 (at least as old as
4.4.7).

AFAICT there is no coverage of these errors in the test suite.



More information about the Gcc-bugs mailing list