This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

[patch] string fix & mystery



Attached below is a fix for a bug in src/string-inst.cc.

The mystery is, why does the compiler not report the bug?

Nathan Myers
ncm@cantrip.org

-----------
Index: string-inst.cc
===================================================================
RCS file: /cvs/libstdc++/libstdc++/src/string-inst.cc,v
retrieving revision 1.12
diff -u -r1.12 string-inst.cc
--- string-inst.cc	2000/04/19 16:14:59	1.12
+++ string-inst.cc	2000/04/20 01:54:46
@@ -280,8 +280,7 @@
 #ifdef CONSC
   template 
     C* 
-    S::_S_construct<S::iterator>
-    (S::size_type, C, const allocator<C>&);
+    S::_S_construct(S::size_type, C, S::allocator_type const&);
 #endif
 
 #ifdef FIND

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