This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[libstdc++v3 Patch] Remove duplicate default argument decls in ctype<char>::ctype
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: gcc-patches at gcc dot gnu dot org
- Cc: dj at redhat dot com
- Date: Wed, 20 Feb 2002 21:48:14 +1100 (EST)
- Subject: [libstdc++v3 Patch] Remove duplicate default argument decls in ctype<char>::ctype
Hello
Please apply the following fix to trunk. The duplicate default argument
decls were exposed by recent patch to fix PR c++/5685.
2002-02-20 Danny Smith <dannysmith@users.sourceforge.net>
* config/os/mingw32/bits/ctype_noninline.h
(ctype<char>::ctype): Remove default args from parm list.
* config/os/djgpp/bits/ctype_noninline.h: Same.
Index: config/os/djgpp/bits/ctype_noninline.h
===================================================================
RCS file:
/cvs/gcc/gcc/libstdc++-v3/config/os/djgpp/bits/ctype_noninline.h,v
retrieving revision 1.7
diff -u -p -r1.7 ctype_noninline.h
--- ctype_noninline.h 2002/01/21 04:08:48 1.7
+++ ctype_noninline.h 2002/02/20 10:23:47
@@ -37,15 +37,15 @@
ctype<char>::classic_table() throw()
{ return 0; }
- ctype<char>::ctype(__c_locale, const mask* __table = 0, bool __del =
false,
- size_t __refs = 0)
+ ctype<char>::ctype(__c_locale, const mask* __table, bool __del,
+ size_t __refs)
: __ctype_abstract_base<char>(__refs), _M_del(__table != 0 && __del),
_M_toupper(__dj_ctype_toupper), _M_tolower(__dj_ctype_tolower),
_M_table(__table ? __table : __dj_ctype_flags)
{ }
- ctype<char>::ctype(const mask* __table = 0, bool __del = false,
- size_t __refs = 0)
+ ctype<char>::ctype(const mask* __table, bool __del,
+ size_t __refs)
: __ctype_abstract_base<char>(__refs), _M_del(__table != 0 && __del),
_M_toupper(__dj_ctype_toupper), _M_tolower(__dj_ctype_tolower),
_M_table(__table ? __table : __dj_ctype_flags)
Index: config/os/mingw32/bits/ctype_noninline.h
===================================================================
RCS file:
/cvs/gcc/gcc/libstdc++-v3/config/os/mingw32/bits/ctype_noninline.h,v
retrieving revision 1.3
diff -u -p -r1.3 ctype_noninline.h
--- ctype_noninline.h 2002/01/21 04:08:51 1.3
+++ ctype_noninline.h 2002/02/20 10:23:47
@@ -41,8 +41,8 @@
ctype<char>::classic_table() throw()
{ return _ctype + 1; }
- ctype<char>::ctype(__c_locale, const mask* __table = 0, bool __del =
false,
- size_t __refs = 0)
+ ctype<char>::ctype(__c_locale, const mask* __table, bool __del,
+ size_t __refs)
: __ctype_abstract_base<char>(__refs), _M_del(__table != 0 && __del),
_M_toupper(NULL), _M_tolower(NULL),
_M_table(__table ? __table : classic_table())
http://movies.yahoo.com.au - Yahoo! Movies
- Vote for your nominees in our online Oscars pool.