This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: print * list-directed output spacing


On Jun 29 2012, David Edelsohn wrote:

Earlier FORTRAN compilers generated the minimum number of spaces required to delimit the items in list-directed output. ...

Intel provides a "-standard-semantics" command-line option to produce
the earlier behavior.  Is there any equivalent option for GNU Fortran?

That is a misfeature of Intel Fortran - not the option, but its name. There is nothing standard about that semantics - not even in Fortran IV.

The standard is very clear that separators must include a comma, spaces
or both - and beyond that is unspecified.  Older compilers had a huge
variety of behaviours, and current ones are fairly variable.

Regards,
Nick Maclaren.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]