------- Comment #4 from kargl at gcc dot gnu dot org 2008-01-21 19:24 -------
(In reply to comment #3)
>
> Sorry, no! The code is non-conforming. The code should be fixed.
>
I downloaded the FITS package, and it's worse than I thought. Please
don't unfix gfortran. This is valid fixed-form Fortran.
c23456789012345678901234567890123456789012345678901234567890123456789012
program a
integer aaaaaaaaaaaa, bbbbbbbbb, cccccccc, dddddddddd, eeeeeeee, f
1gggg
fgggg = 1
print *, fgggg
end program a
If I understand correctly, you want to change gfortran to parse a leading
tab as 5 spaces if it is followed by digit; otherwise, the leading tab is
parsed as 6 spaces. OK, change the above program by replacing the 1 in
column 5 to 'd'. This is again a valid fixed-form code. Now, replace the
leading spaces with a tab. Do you expand the leading tab by 5 or 6 spaces?
Seriously, the FITS code is invalid.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34899