This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


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