This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/52024] New: [OOP] GENERIC operator cannot be resolved
- From: "fmartinez at gmv dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 27 Jan 2012 21:55:45 +0000
- Subject: [Bug fortran/52024] New: [OOP] GENERIC operator cannot be resolved
- Auto-submitted: auto-generated
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