This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/48786] [OOP] Generic ambiguity check too strict for polymorphic dummies
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 21 Aug 2013 14:48:08 +0000
- Subject: [Bug fortran/48786] [OOP] Generic ambiguity check too strict for polymorphic dummies
- Auto-submitted: auto-generated
- References: <bug-48786-4 at http dot gcc dot gnu dot org/bugzilla/>
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).