This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/41023] Inconsistent error locations for wrong interfaces with overloaded operators
- From: "dominiq at lps dot ens dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Aug 2009 20:54:45 -0000
- Subject: [Bug fortran/41023] Inconsistent error locations for wrong interfaces with overloaded operators
- References: <bug-41023-16338@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from dominiq at lps dot ens dot fr 2009-08-10 20:54 -------
I think the ifort messages are more helpful:
[ibook-dhum] f90/bug% ifc pr41023.f90
pr41023.f90(14): error #6711: The number of function arguments is inconsistent
with the intrinsic use of the OPERATOR. [MYPLUS]
INTEGER FUNCTION myplus (a, b, c)
-------------------^
compilation aborted for pr41023.f90 (code 1)
[ibook-dhum] f90/bug% ifc pr41023_1.f90
pr41023_1.f90(14): error #6708: A specific procedure must be a function for a
defined OPERATOR. [MYPLUS]
SUBROUTINE myplus (a, b)
-------------^
compilation aborted for pr41023_1.f90 (code 1)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41023