[Bug libstdc++/93470] [9 Regression] [C++2a] std::reference_wrapper to function type is broken with Clang

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 5 17:44:00 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93470

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Jonathan Wakely
<redi@gcc.gnu.org>:

https://gcc.gnu.org/g:08ed34284f4e6ac9a4e647d9caa82ee4b4de0fa3

commit r9-8345-g08ed34284f4e6ac9a4e647d9caa82ee4b4de0fa3
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Thu Mar 5 16:52:19 2020 +0000

    libstdc++: Avoid using sizeof with function types (PR 93470)

    Backport from mainline
    2020-01-28  Jonathan Wakely  <jwakely@redhat.com>

        PR libstdc++/93470
        * include/bits/refwrap.h (reference_wrapper::operator()): Restrict
        static assertion to object types.


More information about the Gcc-bugs mailing list