This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/78351] New: comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?
- From: "kevin.b.beard at nasa dot gov" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 14 Nov 2016 17:55:29 +0000
- Subject: [Bug fortran/78351] New: comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78351
Bug ID: 78351
Summary: comma not terminating READ of formatted input field -
ok in 4.1.7, not 4.4.7- maybe related to 25419?
Product: gcc
Version: 4.4.7
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: kevin.b.beard at nasa dot gov
Target Milestone: ---
Created attachment 40038
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40038&action=edit
Simple example - comma no longer a format field delimiter - gfortran 4.1.2 ok,
4.4.7- fails
Here @ NASA we often have strings to read of the form:
#,#,#,#,.....
and on many platforms, gfortran 4.1.2 and (most?) earlier, Intel Fortran
16.0.3, g77-3.4.6 and most other FORTRANs, it would treat the "," as a field
delimiter during a formatted READ - for example (x1.f):
character*80 s
s= '1,2,3,,,,'
READ(s,'(2i10)') i,j
write(6,'(2i10)') i,j
end
would print " 1 2".
However, 4.4.7 ("gfortran -o x1 x1.f") now (11/2016) fails with
"Fortran runtime error: Bad value during integer read".
I believe it worked with 4.4.7 back in 9/2016 on ScientificLinux-6.4 fine, but
there have been security patches done since then. It also fails on 4.8.5 and
5.3.0 under Red Hat Enterprise Linux Server release 5.11 It would be very nice
to be able to restore the old behavior.
This may be related to bug#25519.
- Follow-Ups:
- [Bug fortran/78351] comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?
- From: jvdelisle at gcc dot gnu.org
- [Bug fortran/78351] comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?
- From: dominiq at lps dot ens.fr
- [Bug fortran/78351] comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?
- From: kargl at gcc dot gnu.org
- [Bug fortran/78351] comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?
- From: jvdelisle at charter dot net
- [Bug fortran/78351] comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?
- From: kevin.b.beard at nasa dot gov
- [Bug fortran/78351] comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?
- From: jvdelisle at gcc dot gnu.org
- [Bug fortran/78351] comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?
- From: sgk at troutmask dot apl.washington.edu
- [Bug fortran/78351] comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?
- From: sgk at troutmask dot apl.washington.edu
- [Bug fortran/78351] comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?
- From: jvdelisle at gcc dot gnu.org
- [Bug fortran/78351] comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?
- From: dominiq at lps dot ens.fr
- [Bug fortran/78351] comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?
- From: jvdelisle at gcc dot gnu.org
- [Bug fortran/78351] comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?
- From: kevin.b.beard at nasa dot gov
- [Bug fortran/78351] comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?
- From: kevin.b.beard at nasa dot gov
- [Bug fortran/78351] comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?
- From: dominiq at lps dot ens.fr
- [Bug fortran/78351] comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?
- From: jvdelisle at gcc dot gnu.org
- [Bug fortran/78351] comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?
- From: sgk at troutmask dot apl.washington.edu
- [Bug fortran/78351] comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?
- From: kevin.b.beard at nasa dot gov
- [Bug fortran/78351] comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?
- From: kevin.b.beard at nasa dot gov
- [Bug fortran/78351] comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?
- From: sgk at troutmask dot apl.washington.edu
- [Bug fortran/78351] comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?
- From: sgk at troutmask dot apl.washington.edu
- [Bug fortran/78351] comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?
- From: jvdelisle at gcc dot gnu.org