gfortran: Why does this fail to compile?

Arjen Markus arjen.markus895@gmail.com
Tue Jan 22 15:06:00 GMT 2013


Hi Mark,

it was a bit of luck, actually. I tried it with a string variable
holding the format
to avoid the compiler checking the format. But at run-time the same
thing happened and then the error was displayed correctly (with
fixed-width characters)

Regards,

Arjen

2013/1/22 Mark Hounschell <markh@compro.net>:
> On 01/22/2013 09:37 AM, Arjen Markus wrote:
>>
>> Hi,
>>
>> a slight refinement on my remark: we may read "X1", but the compiler
>> probably interprets this as X, followed by the next format group that
>> begins with
>> a 1 - commas are not required. Hence it has a very good reason to report
>> the closing parenthesis as the erroneous part. It simply is not the way a
>> human being would parse the format.
>>
>
> You have some very good eyes, and I now understand. Thank you.
>
> Regards
> Mark



More information about the Fortran mailing list