[Bug fortran/41023] Inconsistent error locations for wrong interfaces with overloaded operators
dominiq at lps dot ens dot fr
gcc-bugzilla@gcc.gnu.org
Mon Aug 10 20:54:00 GMT 2009
------- 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
More information about the Gcc-bugs
mailing list