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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Fri May 10 21:41:19 2019
New Revision: 271079

URL: https://gcc.gnu.org/viewcvs?rev=271079&root=gcc&view=rev
Log:
PR libstdc++/90397 fix std::variant friend declarations

Clang diagnoses the inconsistent noexcept-specifier on the friend
declaration of __get. Add it, and also on __get_storage.

        PR libstdc++/90397
        * include/std/variant (_Variant_storage<false, Types...>::_M_storage())
        (_Variant_storage<true, Types...>::_M_reset()))
        (_Variant_storage<true, Types...>::_M_storage())): Add noexcept.
        (__get_storage): Likewise.
        (variant): Add noexcept to friend declarations for __get and
        __get_storage.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/std/variant

Reply via email to