This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34899] Continuation lines with <tab><number> not recognized
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jan 2008 19:24:37 -0000
- Subject: [Bug fortran/34899] Continuation lines with <tab><number> not recognized
- References: <bug-34899-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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