PR 2767, V3 regression failure on strstr et al

Fergus Henderson fjh@cs.mu.oz.au
Sat May 19 01:59:00 GMT 2001


On 18-May-2001, Stephen M. Webb <stephen@bregmasoft.com> wrote:
> 
> *** std_cstring.h	2001/05/08 23:53:55	1.7
> --- std_cstring.h	2001/05/19 02:44:52
> ***************
> *** 40,45 ****
> --- 40,52 ----
>   #include <bits/std_cstddef.h>
>   
>   #pragma GCC system_header
> + 
> + #define memchr  glibcpp_hidden_memchr
> + #define strchr  glibcpp_hidden_strchr
> + #define strpbrk glibcpp_hidden_strpbrk
> + #define strrchr glibcpp_hidden_strrchr
> + #define strstr  glibcpp_hidden_strstr

The names glibcpp_hidden_* are in the user's namespace.
You should use something in the implementation's namespace,
e.g. __glibcpp_*.

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: < http://www.cs.mu.oz.au/~fjh >  |     -- the last words of T. S. Garp.



More information about the Gcc-patches mailing list