This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/27112] Rejects to call a generic procedure by argument keywords.
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Apr 2006 02:25:38 -0000
- Subject: [Bug fortran/27112] Rejects to call a generic procedure by argument keywords.
- References: <bug-27112-9795@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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