PR libstdc++/90397 fix std::variant friend declarations
authorJonathan Wakely <jwakely@redhat.com>
Fri, 10 May 2019 21:41:19 +0000 (22:41 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 10 May 2019 21:41:19 +0000 (22:41 +0100)
commit4b7a3ab82f1951b1ab808065cec829fecb27e206
tree5b3730dd47e3684e8a955de2d3d5bce29b81492e
parent7fb65a875956bac7095c17c545f2bfa131209f50
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.

From-SVN: r271079
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/variant