Qualification bug in tinfo

Martin v. Loewis martin@mira.isdn.cs.tu-berlin.de
Sun May 2 02:31:00 GMT 1999


The qualification of type_info is incorrect; a patch is attached.

Regards,
Martin

1999-05-02  Martin von Löwis  <loewis@informatik.hu-berlin.de>

	* tinfo.cc (operator==): Qualify type_info with std::.

Index: tinfo.cc
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/tinfo.cc,v
retrieving revision 1.9
diff -u -r1.9 tinfo.cc
--- tinfo.cc	1998/12/16 21:16:12	1.9
+++ tinfo.cc	1999/05/02 09:20:47
@@ -40,8 +40,8 @@
 { }
 
 // 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);
 }


More information about the Gcc-patches mailing list