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/52024] New: [OOP] GENERIC operator cannot be resolved


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52024

             Bug #: 52024
           Summary: [OOP] GENERIC operator cannot be resolved
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: fmartinez@gmv.com


Created attachment 26483
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26483
Module with class operators for test

The attached example generates the compilation error:

m_test.f90:10.32:

      generic :: operator(==) => t_equal_i, i_equal_t
                                1
Error: 't_equal_i' and 'i_equal_t' for GENERIC '==' at (1) are ambiguous

Subroutines t_equal_i and i_equal_t for operator(==) have different signatures.

The module and est program compile and run correctly using Intel 12.1


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