This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
libstdc++/2272: comparison between signed and unsigned integer expressions in sstream
- To: gcc-gnats at gcc dot gnu dot org
- Subject: libstdc++/2272: comparison between signed and unsigned integer expressions in sstream
- From: boris at folgmann dot com
- Date: 12 Mar 2001 15:46:50 -0000
- Cc: uli42 at web dot de, knweiss at web dot de
- Reply-To: boris at folgmann dot com
>Number: 2272
>Category: libstdc++
>Synopsis: comparison between signed and unsigned integer expressions in sstream
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Mar 12 07:55:59 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Boris Folgmann
>Release: libstdc++-2.96
>Organization:
>Environment:
gcc-c++-2.96-77.1 and libstdc++-2.96-77.1 RPMs on Red Hat 7.0
>Description:
The line
if(buf.size() - rpos != n)
line 171 in /usr/include/g++-3/sstream causes a warning
comparison between signed and unsigned integer expressions
>How-To-Repeat:
A shortened version of my Timestamp member function
#include <sstream>
string Timestamp::String()
{
ostringstream os;
os << 1;
return os.str();
}
>Fix:
Use signed and unsigned correctly?
>Release-Note:
>Audit-Trail:
>Unformatted: