libstdc++: Replace reserved identifier _T with _Tp (PR 94901)
authorJonathan Wakely <jwakely@redhat.com>
Fri, 1 May 2020 12:13:39 +0000 (13:13 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 1 May 2020 12:41:02 +0000 (13:41 +0100)
commit070b4df8a06539b661c134d436ea4207099fdcf0
treea76e163dd4ae055acc9562c43b01caf5f2ea2763
parent7eee6d219617123a94cf0872821b1f78c2a9b8f1
libstdc++: Replace reserved identifier _T with _Tp (PR 94901)

The libstdc++ manual documents that _T can not be used, because it's a
macro in system headers on some targets.

PR libstdc++/94901
* include/std/type_traits (__is_complete_or_unbounded): Replace
BADNAME _T with _Tp.
* testsuite/17_intro/badnames.cc: New test.
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/type_traits
libstdc++-v3/testsuite/17_intro/badnames.cc [new file with mode: 0644]