[Bug fortran/32678] New: GFortan works incorrectly when writing with FORMAT Tx
satyaakam at yahoo dot co dot in
gcc-bugzilla@gcc.gnu.org
Sun Jul 8 18:34:00 GMT 2007
GFortran writes unpredictable char when it is used modificaters Tx in FORMAT
and the first position 'x' is less then current position and the second
position 'x' is greater then the maximum previously position.
write (*,10) '12','a','b'
10 format (a2,t1,a1,t2,a1,t20,' ')
This bug is reproduced in GFortan 4.1.2
Fail case has invisible char with code 0 after 'ab'. You can see this char with
hexdump or VIM for example.
fail case
./a.out | hexdump
0000000 6261 2000 2020 2020 2020 2020 2020 2020
0000010 2020 2020 000a
0000015
pass case
./a1.out | hexdump
0000000 6261 2020 2020 2020 2020 2020 2020 2020
0000010 2020 2020 000a
0000015
Satya
--
Summary: GFortan works incorrectly when writing with FORMAT Tx
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: satyaakam at yahoo dot co dot in
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32678
More information about the Gcc-bugs
mailing list