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/48786] [OOP] Generic ambiguity check too strict for polymorphic dummies


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

--- Comment #14 from janus at gcc dot gnu.org ---
(In reply to Dominique d'Humieres from comment #12)
> I still get the errors
> 
> pr48786_2.f90:132.46:
> 
>      generic, public         :: operator(+) => add_vector
>                                               1
> Error: 'add_vector_3d' and 'add_vector_2d' for GENERIC '+' at (1) are
> ambiguous
> 
> [...]
> 
> with the test in http://gcc.gnu.org/ml/fortran/2011-04/msg00293.html
> at r201817 or 4.8.1.
> 
> [...]
> 
> Is this a bug or the expected behavior?

The test case you refer to is the one from comment 2 and, as I mentioned, the
behavior did not change for this one (according to previous evaluations in this
PR the behavior is correct).


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