[Bug fortran/84389] Defined output: unexpected compiler error with the use of ":" edit descriptor
sgk at troutmask dot apl.washington.edu
gcc-bugzilla@gcc.gnu.org
Thu Feb 15 21:23:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84389
--- Comment #3 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Thu, Feb 15, 2018 at 09:04:24PM +0000, fortranfan at outlook dot com wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84389
>
> --- Comment #2 from Vipul Parekh <fortranfan at outlook dot com> ---
> Thank for your response.
>
> Per section 1.4.1 in 10-007r1 toward Fortran 2008 on syntax rules toward the
> BNF convention in the document, line 16 says [] encloses an optional item.
>
> R1303 format-items is format-item [ [ , ] format-item ]
>
> then suggests the comma in the format item is optional and the format in the
> first post should work as shown.
>
Ah, indeed! You are correct. I simply missed the enclosing [ ]
in looking through all of the ENBDF rules.
More information about the Gcc-bugs
mailing list