https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116359
Mikael Morin <mikael at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from Mikael Morin <mikael at gcc dot gnu.org> ---
(In reply to kargls from comment #1)
> See F2023, Table 5.1 and 5.2. 5.1 shows that Internal subprograms
> and module subprograms appear after CONTAINS statement. Neither
> shows that a CONTAINS statement can occur within their block. Table
> 5.2 shows that CONTAINS can appear in a module subprogram. So,
> may be an inconsistency?
Of course. I was looking for a prose interdiction, but didn't think of tables.
(In reply to anlauf from comment #2)
> There seems nothing wrong with gfortran here, it is the Fortran standard
> which is not as regular as you expect.
>
> (I am also bothered by this limitation, but it has there for quite some
> time.)
>
> Can we close this one?
Yes, sorry.