Commit 1873d769 by Jason Merrill Committed by Jason Merrill

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

From-SVN: r23034
parent 6f87c7d8
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> 1998-10-12 Herman ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
* decl.c (start_function): Fix cut-and-paste error. * decl.c (start_function): Fix cut-and-paste error.
......
...@@ -39,22 +39,12 @@ std::type_info:: ...@@ -39,22 +39,12 @@ std::type_info::
~type_info () ~type_info ()
{ } { }
#ifndef __COMMON_UNRELIABLE // We can't rely on common symbols being shared between shared objects.
bool type_info:: bool type_info::
operator== (const type_info& arg) const 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 extern "C" void
__rtti_class (void *addr, const char *name, __rtti_class (void *addr, const char *name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment