This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: missing typename in stl_tempbuf.h
- To: egcs-patches at cygnus dot com
- Subject: PATCH: missing typename in stl_tempbuf.h
- From: Klaus-Georg Adams <Klaus-Georg dot Adams at chemie dot uni-karlsruhe dot de>
- Date: Fri, 10 Jul 1998 17:32:28 +0200
When I switched to compiling with -pedantic g++ stumbled over a bug in
stl_tempbuf.h. Could someone please install the patch?
-- kga
-------------------------------------------------------------------------
Klaus-Georg Adams Email: Klaus-Georg.Adams@chemie.uni-karlsruhe.de
Institut f. Anorg. Chemie, Lehrstuhl II Tel: 49(0)721 608 3485
Universität Karlsruhe, D-76128 Karlsruhe
-------------------------------------------------------------------------
Index: ChangeLog
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/libstdc++/stl/ChangeLog,v
retrieving revision 1.11
diff -u -p -u -r1.11 ChangeLog
--- ChangeLog 1998/06/27 23:51:32 1.11
+++ ChangeLog 1998/07/10 15:29:04
@@ -1,3 +1,8 @@
+Fri Jul 10 15:20:09 1998 Klaus-Georg Adams <Klaus-Georg.Adams@chemie.uni-karlsruhe.de>
+
+ * stl_tempbuf.h (temporary_buffer): Add missing typename.
+ * type_traits.h: update comments.
+
Sun Jun 28 00:49:42 1998 Jeffrey A Law (law@cygnus.com)
* stl_config.h (__STL_PTHREADS): Don't define for glibc 2 if
Index: stl_tempbuf.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/libstdc++/stl/stl_tempbuf.h,v
retrieving revision 1.1
diff -u -p -u -r1.1 stl_tempbuf.h
--- stl_tempbuf.h 1997/11/02 20:28:18 1.1
+++ stl_tempbuf.h 1998/07/10 15:20:09
@@ -99,7 +99,7 @@ public:
allocate_buffer();
if (len > 0)
initialize_buffer(*first,
- __type_traits<T>::has_trivial_default_constructor());
+ typename __type_traits<T>::has_trivial_default_constructor());
}
__STL_UNWIND(free(buffer); buffer = 0; len = 0);
}
Index: type_traits.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/libstdc++/stl/type_traits.h,v
retrieving revision 1.2
diff -u -p -u -r1.2 type_traits.h
--- type_traits.h 1997/11/02 20:28:21 1.2
+++ type_traits.h 1998/07/10 15:28:14
@@ -46,7 +46,7 @@ template <class T> void copy(T* source,T
//Copy an array of any type by using the most efficient copy mechanism
template <class T> inline void copy(T* source,T* destination,int n) {
- copy(source,destination,n,__type_traits<T>::has_trivial_copy_constructor());
+ copy(source,destination,n,typename __type_traits<T>::has_trivial_copy_constructor());
}
*/