------- Comment #8 from kargl at gcc dot gnu dot org 2010-02-16 16:29 ------- (In reply to comment #6) > Subject: RE: gfortran: spurious warning of line truncation at col 72 > > > Well, it's a counting issue. Fixed-form Fortran is required to > > have exactly 72 characters in a line of code. Does CRLF count as > > one character or two? > > Zero. CR and LF are not in the Fortran 77 character set (ANSI > X3.9-1978 Sect. 3.1), and I think it is sensible to regard them > as part of the environment rather than the Fortran statement. >
The Fortran character set isn't the relevant character set. >From the Fortran 95 standard: 3.1 Processor character set The processor character set is processor dependent. The structure of a processor character set is: (1) Control characters ("newline", for example) (2) Graphic characters (a) Letters (3.1.1) (b) Digits (3.1.2) (c) Underscore (3.1.3) (d) Special characters (3.1.4) (e) Other characters (3.1.5) The letters, digits, underscore, and special characters make up the Fortran character set. 3.3.2 Fixed source form In fixed source form, there are restrictions on where a statement may appear within a line. If a source line contains only default kind characters, it shall contain exactly 72 characters; otherwise, its maximum number of characters is processor dependent. 3.1.5 Other characters Additional characters may be representable in the processor, but may appear only in comments (3.3.1.1, 3.3.2.1), character constants (4.3.2.1), input/output records (9.1.1), and character string edit descriptors (10.2.1). The default character type shall support a character set that includes the Fortran character set. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43078