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 #5 from mikael at gcc dot gnu dot org  2010-04-20 14:21 -------
Created an attachment (id=20444)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20444&action=view)
patch

This produces :

pr41023.f90:9.21:

    MODULE PROCEDURE myplus
                     1
Error: Operator interface at (1) has the wrong number of arguments


and :

pr41023_bis.f90:9.21:

    MODULE PROCEDURE myplus
                     1
Error: Intrinsic operator interface at (1) must be a FUNCTION


-- 


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]