Sample test failure. Works on Sun Compiler, Mac g95 but fails on gfortran, by
having spaces where character should be displayed.
[mac27:~] bmcinnes% more p.f
CHARACTER FOR*(*)
PARAMETER(FOR='(T114,A3, T1,A4, T5,A2, T7,A2, T9,A4, T27,A1, T
+18,A6, T13,A5, T28,A1,T119,A3,T122,A3,T125,A2,T109,A1,T127,A2,T129
+,A1,T130,A1,T131,A1, T46,A1, T47,A3, T50,A1, T51,A3, T54,A1, T55,A
+2, T57,A2, T59,A1,T183,A1, T60,A5, T69,A1, T70,A4, T75,A4, T80,A4,
+ T86,A4, T84,A2, T90,A1, T91,A1, T92,A1, T93,A1, T94,A1, T95,A1, T
+96,A1, T97,A2, T99,A2,T101,A2,T103,A2,T105,A2,T107,A2, T44,A2,T134
+,A2, T29,A1, T30,A1, T65,A1, T66,A3,T195,A1,T196,A2,T198,A1, T33,A
+2, T35:A1, T36:A1, T37:A1, T38:A1, T39:A1, T40:A1, T41:A1, T42:A1,
+T178,A1,T179,A1, T74,A1,T182,A1,T132,A1,T133,A1,T109,A1,T109,A1,T1
+09,A1,T109,A1,T148,A1,T149,A1,T150,A1,T151,A1,T152,A1,T153,A1,T154
+,A1,T109,A1,T109,A1,T109,A1,T109,A1,T109,A1,T109,A1,T109,A1,T109,A
+1,T109,A1,T171,A1,T109,A1,T109,A1,T109,A1,T109,A1,T109,A1,T155,A1,
+T156,A1,T157,A1,T158,A1,T159,A1,T160,A1,T161,A1,T162,A1,T163,A1,T1
+64,A1,T165,A1,T166,A1,T167,A1,T168,A1,T109,A1)')
character a(111)
data a/111*'a'/
write(6,for)a
end
[mac27:~] bmcinnes% g95 p.f
[mac27:~] bmcinnes% ./a.out
a a a a a a aaaa aaaaaaaaa aa aa aa a aa aa aa aa a
a a aaaaaaaa a a a a a aa a a a a aaaaaa a
aaaaaaaaaaaaaaaaaaaaa a aa aa a aa
[mac27:~] bmcinnes% gfortran p.f
ld: warning, duplicate dylib /usr/local/gfortran/lib/libgcc_s.1.dylib
[mac27:~] bmcinnes% ./a.out
a a a a a a aaaa aaaaaaaaa aa aa aa a aa aa a a
a aa
aaaaaaaaaaaaaaaaaaaaa
[mac27:~] bmcinnes% gfortran --version
GNU Fortran (GCC) 4.3.0 20071017 (experimental) [trunk revision 129405]
Copyright (C) 2007 Free Software Foundation, Inc.
GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
[mac27:~] bmcinnes%
--
Summary: tab format failure to display properly
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: barry dot j dot mcinnes at noaa dot gov
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34782