[Bug libstdc++/94901] [10 Regression] <type_traits> uses BADNAME _T
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri May 1 14:31:35 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94901
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jonathan Wakely
<redi@gcc.gnu.org>:
https://gcc.gnu.org/g:bcf1d3883236c30147201cd712e6edbdc4fbc3ab
commit r10-8083-gbcf1d3883236c30147201cd712e6edbdc4fbc3ab
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Fri May 1 14:32:24 2020 +0100
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.
Backport from mainline
2020-05-01 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/94901
* include/std/type_traits (__is_complete_or_unbounded): Replace
BADNAME _T with _Tp.
* testsuite/17_intro/badnames.cc: New test.
More information about the Gcc-bugs
mailing list