This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
small bugs in stl (egcs-2.92.16 19981022)
- To: "egcs-bugs at cygnus dot com" <egcs-bugs at cygnus dot com>, Theodore dot Papadopoulo at sophia dot inria dot fr
- Subject: small bugs in stl (egcs-2.92.16 19981022)
- From: Jose Gomes <Jose dot Gomes at sophia dot inria dot fr>
- Date: Wed, 28 Oct 1998 14:42:31 +0100
Hi, I'm using egcs-2.92.16 19981022.
The following code should compile without any warning:
deque<int> d;
d.push_back(0);
d.erase(d.begin());
but it generates:
..../include/g++-2/stl_deque.h:818: warning: comparison between signed
and unsigned
Using other methods of the class deque, we also get:
..../include/g++-2/stl_deque.h:1406: warning: comparison between signed
and unsigned
..../include/g++-2/stl_deque.h:1051: warning: comparison between signed
and unsigned
It seems that the cast to (difference_type) has been forgoten in a few
"if" statements.
Thanks in advance for the corrections.
--
Jose.Gomes@sophia.inria.fr Tel. +33 4 92 38 76 48
http://www.inria.fr/robotvis/personnel/jgomes/jgomes-eng.html
Projet RobotVis, INRIA, 2004, route des Lucioles - B.P. 93
F-06902 Sophia Antipolis Cedex, FRANCE