PR libstdc++/79789 fix non-reserved names in headers
commit6cb28338444b8007b248d3d722fde08b8777f093
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Mar 2017 03:43:49 +0000 (2 03:43 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Mar 2017 03:43:49 +0000 (2 03:43 +0000)
tree69e9081d4292ab46de3188a521dfa8e52e686b73
parent31ab13fe142079260dff23ae1a86dc4af1f71f74
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245828 138bc75d-0d04-0410-961f-82ee72b054a4
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]