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] (Coarray) Fix constraint checks for LOCK_TYPE


On Thu, Aug 04, 2011 at 03:18:46PM +0200, Tobias Burnus wrote:
> On 08/04/2011 02:44 PM, Mikael Morin wrote:
> >>and I belief both "var%comp" and
> >>"var" are named.
> >My reading is that a named variable is a variable that is an object-name.
> 
> That's actually my problem with the standard - it never quite tells what 
> a "named variable" exactly is. I think at least "ptrfunction()" is not a 
> named variable but just a variable.
> 

F2003, page 432:

  named:  Having a name.  That is, in a phrase such as "named variable,"
  the word "named" signifies that the variable name is not qualified by
  a subscript list, substring specification, and so on.  For example,
  if X is an array variable, the reference "X" is a named variable while
  the reference "X(1)" is an object designator.

'Named procedure' only appears in the title of Sec. 12.4.4.  This
section speaks of procedure resolution, and doesn't get into the
the definition of 'named procedure'.  If we extend the example to
'ptrfunction()', it would seem that 'ptrfunction' is a named 
procedure and 'ptrfunction()' is a reference to this procedure.

-- 
Steve


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