This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

tinfo.cc & -fhonor-std


Compiling egcs with honor-std as the default died on tinfo.cc.  Some,
but not all, occurances of type_info were qualified.  The included
tiny patch makes tinfo.cc work like tinfo2.cc.

Jason

--- tinfo.cc    1998/11/23 03:12:34     1.8
+++ tinfo.cc    1998/12/09 01:51:05
@@ -31,11 +31,13 @@
 #include "tinfo.h"
 #include "new"                 // for placement new
 
+using std::type_info;
+
 // This file contains the minimal working set necessary to link with code
 // that uses virtual functions and -frtti but does not actually use RTTI
 // functionality.
 
-std::type_info::
+type_info::
 ~type_info ()
 { }
 
@@ -52,7 +54,7 @@ __rtti_class (void *addr, const char *na
 { new (addr) __class_type_info (name, bl, bn); }
 
 extern "C" void
-__rtti_si (void *addr, const char *n, const std::type_info *ti)
+__rtti_si (void *addr, const char *n, const type_info *ti)
 {
   new (addr) __si_type_info
     (n, static_cast <const __user_type_info &> (*ti));



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]