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/49638] [OOP] length parameter is ignored when overriding type bound character functions with constant length.


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

--- Comment #13 from Mikael Morin <mikael at gcc dot gnu.org> 2011-08-04 11:16:41 UTC ---
(In reply to comment #11)
> (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.
> 
> Can we be sure that this is the case? With the strcmp we should be on the safe
> side.
> 
If it's not the case there is a bug. ;-)


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