This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/63733] [4.8/4.9/5 Regression] [OOP] wrong resolution for OPERATOR generics
- 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: Thu, 08 Jan 2015 20:13:35 +0000
- Subject: [Bug fortran/63733] [4.8/4.9/5 Regression] [OOP] wrong resolution for OPERATOR generics
- Auto-submitted: auto-generated
- References: <bug-63733-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63733
--- Comment #7 from janus at gcc dot gnu.org ---
I think the proper fix should be to look for type-bound operators *before*
non-type-bound operators in gfc_extend_expr (interface.c). In gfc_extend_assign
this is already done in the right order (i.e. type-bound first).