* tinfo.cc (operator==): Always compare names.

From-SVN: r23034
This commit is contained in:
Jason Merrill 1998-10-12 20:08:54 +00:00 committed by Jason Merrill
parent 6f87c7d816
commit 1873d7691d
2 changed files with 6 additions and 12 deletions

View File

@ -1,3 +1,7 @@
1998-10-12 Jason Merrill <jason@yorick.cygnus.com>
* tinfo.cc (operator==): Always compare names.
1998-10-12 Herman ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
* decl.c (start_function): Fix cut-and-paste error.

View File

@ -39,22 +39,12 @@ std::type_info::
~type_info ()
{ }
#ifndef __COMMON_UNRELIABLE
// We can't rely on common symbols being shared between shared objects.
bool type_info::
operator== (const type_info& arg) const
{
return &arg == this;
return (&arg == this) || (fast_compare (name (), arg.name ()) == 0);
}
#else
// We can't rely on common symbols being shared between translation units
// under Windows. Sigh.
bool type_info::
operator== (const type_info& arg) const
{
return fast_compare (name (), arg.name ()) == 0;
}
#endif
extern "C" void
__rtti_class (void *addr, const char *name,