diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index c767fb37e25..f21d2b128ab 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +1999-05-02 Martin von Löwis + + * tinfo.cc (operator==): Qualify type_info with std::. + 1999-05-02 Mark Mitchell * cp-tree.h (lang_decl_flags): Remove comdat. Updated dummy. diff --git a/gcc/cp/tinfo.cc b/gcc/cp/tinfo.cc index 0d782ea375a..5269cb5940e 100644 --- a/gcc/cp/tinfo.cc +++ b/gcc/cp/tinfo.cc @@ -40,8 +40,8 @@ std::type_info:: { } // We can't rely on common symbols being shared between shared objects. -bool type_info:: -operator== (const type_info& arg) const +bool std::type_info:: +operator== (const std::type_info& arg) const { return (&arg == this) || (strcmp (name (), arg.name ()) == 0); }