diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-05-10 22:41:19 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-05-10 22:41:19 +0100 |
commit | 4b7a3ab82f1951b1ab808065cec829fecb27e206 (patch) | |
tree | 5b3730dd47e3684e8a955de2d3d5bce29b81492e /gcc | |
parent | 7fb65a875956bac7095c17c545f2bfa131209f50 (diff) | |
download | gcc-4b7a3ab82f1951b1ab808065cec829fecb27e206.zip gcc-4b7a3ab82f1951b1ab808065cec829fecb27e206.tar.gz gcc-4b7a3ab82f1951b1ab808065cec829fecb27e206.tar.bz2 |
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
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions