This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/49638] [OOP] length parameter is ignored when overriding type bound character functions with constant length.
- From: "kargl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 4 Aug 2011 15:19:09 +0000
- Subject: [Bug fortran/49638] [OOP] length parameter is ignored when overriding type bound character functions with constant length.
- Auto-submitted: auto-generated
- References: <bug-49638-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49638
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu.org
--- Comment #14 from kargl at gcc dot gnu.org 2011-08-04 15:18:43 UTC ---
(In reply to comment #10)
> (In reply to comment #9)
> > + if (strcmp (e1->symtree->n.sym->name, e1->symtree->n.sym->name) != 0)
>
> That can be done quicker as:
> if (e1->symtree->n.sym->name == e1->symtree->n.sym->name)
>
> well, not in the general case - but as long as "gfc_get_string" was used to
> obtain the value.
Hopefully, the above is optimized away by the c compiler.
I suspect that one of the 'e1' should be an 'e2'.