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/41023] Inconsistent error locations for wrong interfaces with overloaded operators



------- 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


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