This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [v3] annex D 8 and 9 for C++0x
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: Joe Buck <Joe dot Buck at synopsys dot COM>, Gabriel Dos Reis <gdr at cs dot tamu dot edu>, libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Sun, 4 Nov 2007 22:06:15 +0100 (CET)
- Subject: Re: [v3] annex D 8 and 9 for C++0x
- References: <9f71cef00710260925s2a1c8662n570849103f709695@mail.gmail.com> <871wbh910k.fsf@soliton.cs.tamu.edu> <20071026135431.10e15b76@concorde.artheist.org> <Pine.LNX.4.64.0710261502460.27977@gauss.cs.tamu.edu> <20071026155723.1a036a85@concorde.artheist.org> <20071026215141.GK28398@synopsys.com> <20071026172927.3e4e05be@concorde.artheist.org> <20071026233051.GP28398@synopsys.com> <20071026235253.01c45d6d@concorde.artheist.org>
On Fri, 26 Oct 2007, Benjamin Kosnik wrote:
> I'm willing to concede on this one. There was no compile warning in a
> previous release for this item. Gerald has also asked about this as
> well.
Thanks, Benjamin!
The warning currently is a bit hard to read, since it is based on
specific formatting (as in the source code) but then munged by the
#warning machinery.
For this short snippet
#include <hash_map>
void f() { }
we now get:
In file included from
/usr/nabil-files/pfeifer/gcc/bin/../lib/gcc/i386-unknown-freebsd6.2/4.3.0/../../../../include/c++/4.3.0/backward/hash_map:64,
from x.c:1:
/usr/nabil-files/pfeifer/gcc/bin/../lib/gcc/i386-unknown-freebsd6.2/4.3.0/../../../../include/c++/4.3.0/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or antiquated
header. Please consider use of an equivalent, non-deprecated interface for
the requested functionality. A list of valid replacements is as follows:
Use: Instead of: <sstream>, basic_stringbuf <strstream>, strstreambuf
<sstream>, basic_istringstream <strstream>, istrstream <sstream>,
basic_ostringstream <strstream>, ostrstream <sstream>, basic_stringstream
<strstream>, strstream <unordered_set>, unordered_set <ext/hash_set>,
hash_set <unordered_set>, unordered_multiset <ext/hash_set>, hash_multiset
<unordered_map>, unordered_map <ext/hash_set>, hash_map <unordered_map>,
unordered_multimap <ext/hash_set>, hash_multimap <functional>, bind
<functional>, binder1st <functional>, bind <functional>, binder2nd
<functional>, bind <functional>, bind1st <functional>, bind <functional>,
bind2nd <memory>, unique_ptr <memory>, auto_ptr To disable this warning
use -Wno-deprecated.
Gerald