This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]