This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/52024] [OOP] GENERIC operator cannot be resolved
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 31 Jan 2012 19:14:24 +0000
- Subject: [Bug fortran/52024] [OOP] GENERIC operator cannot be resolved
- Auto-submitted: auto-generated
- References: <bug-52024-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52024
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #8 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-01-31 19:14:24 UTC ---
I somehow missed comment 5, which has an example which now gives an internal
compiler error for:
gcc_assert (t1->is_operator == t2->is_operator);
The problem is that in module.c's mio_typebound_proc, the gfc_tbp_generic's
is_operator is not set.
Possible solutions:
- Check for whether the symtree starts with "OPERATOR"
- Save the "is_opterator" state to the file
TODO: Check whether ASSIGNMENT is currently correctly handled, it might have a
similar issue.