Logo Search packages:      
Sourcecode: gcc-2.95 version File versions

bug-46720.cc

/*
From: Richard Kettlewell <rjk@sfere.greenend.org.uk>
Sender: Richard Kettlewell <richard@sfere.greenend.org.uk>
To: submit@bugs.debian.org
Subject: Bug#46720: STL deque implementation generates scads of warnings
Date: Tue,  5 Oct 1999 20:27:40 +0100 (BST)

Package: libstdc++2.9-dev
Version: 

The implementation of the <deque.h> class generates rather a lot of
compiler warnings if you use `-Wall'.  This is bad, as it makes
`-Werror' useless.

ii  libstdc++2.9-de 2.91.60-5      The GNU stdc++ library (development files)
ii  g++             2.91.60-5      The GNU (egcs) C++ compiler.

lyonesse$ c++ -c -Wall t.cc

lyonesse$ cat t.cc
*/

#include <deque.h>

template deque<int>;

/*
lyonesse$ c++ -c -Wall t.cc
/usr/include/g++-2/stl_deque.h: In method `struct __deque_iterator<int,int &,int *,0> deque<int,__default_alloc_template<true,0>,0>::erase<int, alloc, 0>(struct __deque_iterator<int,int &,int *,0>, struct __deque_iterator<int,int &,int *,0>)':
/usr/include/g++-2/stl_deque.h:420:   instantiated from `deque<int,__default_alloc_template<true,0>,0>::operator =<int, alloc, 0>(const deque<int,__default_alloc_template<true,0>,0> &)'
t.cc:3:   instantiated from here
/usr/include/g++-2/stl_deque.h:747: warning: comparison between signed and unsigned

[...]

*/

Generated by  Doxygen 1.6.0   Back to index