[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


--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jonathan Wakely


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