(j3.2006) Constraint C835: SELECT TYPE selector must be anamed variable

Damian Rouson sourcery
Thu Nov 6 19:54:50 EST 2014



On Nov 6, 2014, at 4:41 PM, Malcolm Cohen <malcolm at nag-j.co.jp> wrote:

> 
> Damian wonders:
>> It would be great if there were some language to explain what is meant by 
>> ?named variable?.
> 
> I am puzzled as to what is confusing or ambiguous about "named"... but then 
> we've been using the term "named" to mean "has a name" for many decades now?


Hi Malcom,

At least in my reading of the error message and the standard, I couldn?t for the life of my figure out how ?bar%stuff? is not a name.  I can assign to it (using a Fortran 2008 intrinsic assignment to a polymorphic variable).  I can print it (using Fortran 2003 derived type I/O) and it didn?t occur to me that the ?%? makes it not a name.  In fact, I?m still so uncertain that I just went and concocted a simpler example without the ?%? to be sure that it is the ?%? that is the problem.

It?s very possible that the glitch is only in my brain.  I have many such glitches. :)  But I thought it might confuse others too.  

Damian



More information about the J3 mailing list