* tinfo.cc (operator==): Always compare names.
From-SVN: r23034
This commit is contained in:
parent
6f87c7d816
commit
1873d7691d
@ -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.
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user