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: [email protected]
ReportedBy: [email protected]
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