This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
EGCS bug with STL
- To: egcs-bugs at cygnus dot com
- Subject: EGCS bug with STL
- From: David Elworthy <dahe at cre dot canon dot co dot uk>
- Date: Mon, 18 Jan 1999 15:00:23 +0000
- Organization: Canon Research Centre Europe Ltd
I believe this is a bug in egcs 1.1.1, compiled on Solaris 2.6.
Here is a small program using the "deque" template from the STL
#include <deque>
typedef deque<double> DE;
int main()
{
DE de;
de.erase( de.begin(), de.end() );
return 1;
}
When compiled with -W -Wall, a warning about a signed/unsigned
comparison is given, in stl_deque.h. This appears to because a
difference_type (unsigned) is compared against a ptrdiff_t (signed).
-- David
_______________________________________________________________________
David Elworthy <dahe@cre.canon.co.uk>
Canon Research Centre Europe Ltd., Guildford, Surrey, UK
URL: http://www.cre.canon.co.uk/
Phone: +44 1483 448844; Fax: +44 1483 448845