(j3.2006) (SC22WG5.4083) keyword procedure

Bill Long longb at cray.com
Fri Sep 11 19:39:25 EDT 2009



Reinhold Bader wrote:
> Hello,
> 
> NAG's compiler processes this without complaints.

Ditto for PGI, Pathscale, gfortran, and Cray.

> Since the procedure statement (in this context) requires brackets 
> following the keyword,
> I think there should be no problem parsing this.
> 
> Regards
> Reinhold
> 
> Aleksandar Donev schrieb:
>> Hello,
>>
>> Is this syntax OK now that we made procedure a keyword? 

Fortran has many keywords, which can almost always be used as variable 
names. Otherwise, we would end up with backward compatibility issues 
with each new standard.


Intel's
>> compiler cranks out on it but I suspect that is a bug 

Yep. A bug.

Cheers,
Bill

and not
>> something we did in the language...
>>
>> function test() result(procedure)
>>    real, pointer :: procedure
>>    procedure => null()
>> end function
>>
>> Thanks,
>> Aleks
>>
>>   
> 
> _______________________________________________
> J3 mailing list
> J3 at j3-fortran.org
> http://j3-fortran.org/mailman/listinfo/j3

-- 
Bill Long                                   longb at cray.com
Fortran Technical Support    &              voice: 651-605-9024
Bioinformatics Software Development         fax:   651-605-9142
Cray Inc., 1340 Mendota Heights Rd., Mendota Heights, MN, 55120




More information about the J3 mailing list