This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR libstdc++/79789 fix non-reserved names in headers
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: "libstdc++" <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 2 Mar 2017 18:59:17 +0000
- Subject: Re: [PATCH] PR libstdc++/79789 fix non-reserved names in headers
- Authentication-results: sourceware.org; auth=none
- References: <CAH6eHdTe346SjB2dK-wEANGWRYp5otXfwwxofW70Am=Reb5Vzg@mail.gmail.com>
On 2 March 2017 at 05:25, Jonathan Wakely wrote:
> Some of these are years old, most are more recent. The new testcase
> should help prevent us trying to use these names again.
>
> PR libstdc++/79789
> * include/bits/hashtable_policy.h (__clp2): Use reserved names for
> parameters and local variables.
> * include/bits/ios_base.h (make_error_code, make_error_condition):
> Likewise.
> * include/bits/list.tcc (list::sort): Likewise.
> * include/bits/mask_array.h (mask_array): Likewise.
> * include/bits/regex.h (regex_token_iterator): Likewise.
> * include/bits/slice_array.h (slice_array): Likewise.
> * include/bits/stl_algo.h (__sample): Likewise.
> * include/std/memory (undeclare_no_pointers): Likewise.
> * include/std/type_traits (is_callable_v, is_nothrow_callable_v):
> Likewise.
> * libsupc++/exception_ptr.h (__dest_thunk): Likewise.
> * testsuite/17_intro/headers/names.cc: New test.
I meant to put this new test in 17_intro not 17_intro/headers, so I've moved it.
* testsuite/17_intro/headers/names.cc: Rename to ...
* testsuite/17_intro/names.cc: ... here.
> Tested powerpc64le-linux, committed to trunk.
>
> I'll backport pieces of this as appropriate to the branches.
Done.