PR libstdc++/79789 fix non-reserved names in headers
authorJonathan Wakely <jwakely@redhat.com>
Thu, 2 Mar 2017 03:43:49 +0000 (03:43 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 2 Mar 2017 03:43:49 +0000 (03:43 +0000)
commitd34d36ef0d85c74884f8f8b0c80d845d3d1bc04f
tree69e9081d4292ab46de3188a521dfa8e52e686b73
parent5782e3094161376c1679c2e5099445b09cf2bf75
PR libstdc++/79789 fix non-reserved names in headers

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.

From-SVN: r245828
12 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/hashtable_policy.h
libstdc++-v3/include/bits/ios_base.h
libstdc++-v3/include/bits/list.tcc
libstdc++-v3/include/bits/mask_array.h
libstdc++-v3/include/bits/regex.h
libstdc++-v3/include/bits/slice_array.h
libstdc++-v3/include/bits/stl_algo.h
libstdc++-v3/include/std/memory
libstdc++-v3/include/std/type_traits
libstdc++-v3/libsupc++/exception_ptr.h
libstdc++-v3/testsuite/17_intro/headers/names.cc [new file with mode: 0644]