[PATCH] PR libstdc++/79789 fix non-reserved names in headers

Jonathan Wakely jwakely.gcc@gmail.com
Thu Mar 2 18:59:00 GMT 2017


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.



More information about the Libstdc++ mailing list