Hi Tobias,

On 11/17/23 12:38, Tobias Burnus wrote:
Hi Harald, hi all,

On 16.11.23 20:30, Harald Anlauf wrote:
According to the standard one can have 999999 lines with only
"&" and then an ";", but then only 100 lines with 10000 characters.

I believe a single '&' is not valid, you either need '&&' or something
else + '&'; thus, you can have only half a million lines + 1.

after looking at the F2023 standard again I wonder why
they did such a disservice to compiler developers...

You are right: a single '&' is not valid.

6.3.2.4 also has:

"When used for continuation, the “&” is not part of the statement"

And 6.3.2.5 (also 6.3.3.4): "The “;” is not part of the statement".

So a million "&"-continued lines is possible in free form.

For fixed form, 6.3.3.1 has: "If a source line contains only characters
of default kind, it shall contain exactly 72 characters; otherwise, its
maximum number of characters is processor dependent."

I wonder what I should make out of this...

In the code, I still use 1,000,000 but now with a comment.

Yeah, for the time being this is the most reasonable solution.
Let's claim that the 10^6 line limit is the new GNU standard ;-)

Cheers,
Harald


Reply via email to