[Bug fortran/33997] Generic interface: Rejects non-ambiguous interface as ambiguous
pault at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Nov 5 11:05:00 GMT 2007
------- Comment #2 from pault at gcc dot gnu dot org 2007-11-05 11:05 -------
Thanks for putting this together. I had seen the discussion but have not had
time to gather together a story, as you have done.
With the Lahey free conformance checker, the example below gives:
Compiling program unit test at line 1:
2278-W: "SOURCE.F90", line 3: Specific procedures (one) and (two) do not
ensure that generic reference (foo) is unambiguous.
Module subprogram name(one)
2008-I: "SOURCE.F90", line 7: Dummy argument 'z_2' not used in this
subprogram.
.....snip.....
Compiling program unit main at line 31:
Encountered 0 errors, 1 warning, 3 informations in file SOURCE.F90.
Compiling file SOURCE.F90.
whilst the original gives:
Compiling program unit test at line 1:
Module subprogram name(b3rt_find_root_muller_Z)
2008-I: "SOURCE.F90", line 7: Dummy argument 'z_tol_i' not used in this
subprogram.
......snip.....
Compiling program unit main at line 53:
Encountered 0 errors, 0 warnings, 9 informations in file SOURCE.F90.
Compiling file SOURCE.F90.
Thus confirming ifort's version.
Thus, I would be inclined to confirm the original but to let a careful reading
of the standard decide the example below.
Cheers
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-11-05 11:05:42
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33997
More information about the Gcc-bugs
mailing list