Un-believable bug

N.M. Maclaren nmm1@cam.ac.uk
Mon Oct 6 11:45:00 GMT 2014


On Oct 6 2014, Holcomb, Katherine A. (kah3f) wrote:
>>
>>>Multiple statements are apparently not very common. I, for one, have
>>>never used them. With a quick grep through the test suite and through
>>>roughly 12 million lines of Fortran code from various sources, I
>>>couldn't find a single multi-statement line.
>>
>>There is a good argument for warning about them with -Wextra, because
>>they are often confusing and can easily occur by accident (finger
>>trouble with ' and ; on UK keyboards, for a start).  What do people
>>think?
>
>I use them fairly regularly for short initializations like
>a=1.0; b=0.0; c=11.0
>
>Other no-ending-semicolon languages, in particular Python and Swift,
>permit multiple-statement lines with semicolon separators, so it seems to
>be somewhat standard.

It dates back to at least BCPL!

>If they were subject to a warning it would definitely need to be one not
>turned on by default since it would strike most programmers as peculiar to
>warn about a standard language feature.

That is why I suggested -Wextra.  I agree that it shouldn't be in -Wall.


Regards,
Nick Maclaren.



More information about the Fortran mailing list