This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Problems with 22_locale/ctor_copy_dtor.cc
- To: libstdc++ at gcc dot gnu dot org
- Subject: Problems with 22_locale/ctor_copy_dtor.cc
- From: Peter Schmid <schmid at snake dot iap dot physik dot tu-darmstadt dot de>
- Date: Wed, 25 Apr 2001 02:21:06 +0200 (CEST)
While examining the failing executable generated from the file
testsuite/22_locale/ctor_copy_dtor.cc, I notice three obscure
warnings, I do not understand. Does that mean there is a bug in the
implementation of codecvt? Especially the final warning seems
strange. Why is the first parameter of the function do_length
discarded?
Peter Schmid
g++ -o ctor_copy_dtor ctor_copy_dtor.cc -W -Wall -I.
/usr/local/include/g++-v3/bits/codecvt.h: In member function
`std::codecvt_base::result std::codecvt<_InternT, _ExternT,
std::__enc_traits>::do_out(std::__enc_traits&, const _InternT*, const
_InternT*, const _InternT*&, _ExternT*, _ExternT*, _ExternT*&) const [with
_InternT = int_type, _ExternT = ext_type]':
/usr/local/include/g++-v3/bits/localefwd.h:88: instantiated from here
/usr/local/include/g++-v3/bits/codecvt.h:445: warning: comparison between
signed and unsigned integer expressions
/usr/local/include/g++-v3/bits/codecvt.h: In member function
`std::codecvt_base::result std::codecvt<_InternT, _ExternT,
std::__enc_traits>::do_in(std::__enc_traits&, const _ExternT*, const
_ExternT*, const _ExternT*&, _InternT*, _InternT*, _InternT*&) const [with
_InternT = int_type, _ExternT = ext_type]':
/usr/local/include/g++-v3/bits/localefwd.h:88: instantiated from here
/usr/local/include/g++-v3/bits/codecvt.h:551: warning: comparison between
signed and unsigned integer expressions
/usr/local/include/g++-v3/bits/codecvt.h: In method `int std::codecvt<_InternT,
_ExternT, std::__enc_traits>::do_length(const std::__enc_traits&, const
_ExternT*, const _ExternT*, unsigned int) const [with _InternT = int_type,
_ExternT = ext_type]':
/usr/local/include/g++-v3/bits/localefwd.h:88: instantiated from here
/usr/local/include/g++-v3/bits/codecvt.h:581: warning: unused parameter `const
std::__enc_traits&__state'