This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Is a tab one or 7 chars when it comes to fitting on a punch card ?
- From: Bud Davis <bdavis9659 at sbcglobal dot net>
- To: fortran at gcc dot gnu dot org
- Date: Tue, 22 Jan 2008 15:57:24 -0800 (PST)
- Subject: Is a tab one or 7 chars when it comes to fitting on a punch card ?
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=wBBUUv0IryWECxIHsWNejXKhY/YBB4TnNvtUF8f63EACejU+1z43q5cmohybaWR7XUVJ1jAbzr+QS0ftu9yw7LYM7ETjcgWiwQnd6kZGJSdMTBq+mYMA490cqz559sVXmYa2mNMYyJ74DwKaPbZ/f/IGAgU66sP3gVNA63fbWyk=;
fixed format source code.
cat -T l.f
!234567890123456789012345678901234567890123456789012345678901234567890123456789
! 1 2 3 4 5 6 7
^I INTEGER A
this is deceptive, because cat displayed the tab as a ^I, so the text is shown shifted right one
position.
g77 accepted this. gfortran does not:
$ gfortran l.f
l.f:3.69:
INT
1
Error: Unclassifiable statement at (1)
is this a bug ?
--bud