This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

small bugs in stl (egcs-2.92.16 19981022)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]