This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran, 4.5] PR 39414 - PROCEDURE statement double declaration bug
> In general, a repeated type declaration is legal, as long as it
> confirms the type.
In the Fortran 2003 Standard, chapter 5, you find:
Every data object has a type and rank and may have type parameters
and other attributes that determine
the uses of the object. Collectively, these properties are the
attributes of the object.
...
C508 An entity shall not be explicitly given any attribute more than
once in a scoping unit.