This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/56786] [4.6/4.7/4.8/4.9 Regression] Namelist read fails with designators containing embedded spaces
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 01 Apr 2013 20:29:46 +0000
- Subject: [Bug libfortran/56786] [4.6/4.7/4.8/4.9 Regression] Namelist read fails with designators containing embedded spaces
- Auto-submitted: auto-generated
- References: <bug-56786-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56786
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Target Milestone|--- |4.6.4
--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> 2013-04-01 20:29:46 UTC ---
(In reply to comment #2)
> *** Bug 56803 has been marked as a duplicate of this bug. ***
That bug has the following test case. We should consider adding it as well. In
addition, the compiler should report END of file and not an error - hence,
libgfortran is not according the standard by failing in the wrong way:
implicit none
integer :: ii
namelist /nml/ ii
open(99, status="scratch")
write(99,'(a)') "&nml ii=55"
rewind(99)
read(99, nml=nml, end=77, err=90)
print *, ii
stop 'OK - vendor extension: successful READ w/o "/"'
77 stop 'OK - END of FILE hit'
90 call abort() ! Wrong
end