This is the mail archive of the gcc-bugs@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]

[Bug fortran/27112] Rejects to call a generic procedure by argument keywords.



------- Comment #5 from jvdelisle at gcc dot gnu dot org  2006-04-12 02:25 -------
Looking at the standard:

Looking in the F95 Standard:

" NOTE 12.4
The dummy argument names may be different because the name of a dummy argument 
   is not a characteristic. "

Also, allowing the use of a keyword to resolve the ambigity conflicts with the
optional use of keywords.  In the test case given you can not call foo without
a keyword which would make the keyword use mandatory which the standard says is
optional.

I also checked one of my Fortran 90 books.  It says that the type and number of
arguments are used to determine the function or procedure to call.  It does not
say anything about keywords.  All the examples show disambiguation by argument
type.

Note:  I am not a standards authority, this is just all I could find.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27112


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