This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[v3] libstdc++/27199
- From: Marc Glisse <marc dot glisse at normalesup dot org>
- To: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Fri, 21 Apr 2006 19:54:46 +0200 (MEST)
- Subject: [v3] libstdc++/27199
Hello,
(it is the first time I propose a patch so please tell me if I am doing
anything wrong)
The issue here is that several c++ headers use size_t and ptrdiff_t in
namespace __gnu_cxx without specifying std::.
In bits/ and debug/, there was only a single error, so I just added std::.
In ext/ there are way more issues, and since there are already headers
there that do "using std::size_t;" in namespace __gnu_cxx, I thought it
was easier to just add the same to the headers were it was missing. It
might be more consistent to add the "using" line to bits/char_traits.h and
debug/hash_multimap.h (or even to cstddef), I don't know.
Solving this will not fix anything immediately but may help for #6257.
I tried the testsuite on i686-pc-linux-gnu and it seems to me that it
changed nothing (although I am not used to this).
--
Marc Glisse
Attachment:
diffgcc
Description: patch