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]

EGCS bug with STL


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


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