From: Jonathan Wakely Date: Wed, 25 Oct 2017 13:55:56 +0000 (+0100) Subject: PR libstdc++/82716 avoid stupid -Wmismatched-tags warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=30e0aed18386348a911723d712084c44787bd6b9;p=gcc.git PR libstdc++/82716 avoid stupid -Wmismatched-tags warnings PR libstdc++/82716 * include/std/array (tuple_size, tuple_element): Change class-key from class to struct, to avoid annoying Clang warnings. From-SVN: r254077 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index afc4b7c0048..c6afd51f02c 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,9 @@ 2017-10-25 Jonathan Wakely + PR libstdc++/82716 + * include/std/array (tuple_size, tuple_element): Change class-key + from class to struct, to avoid annoying Clang warnings. + PR libstdc++/79283 * src/filesystem/ops.cc (read_symlink): Handle st_size being zero. * src/filesystem/std-ops.cc (read_symlink): Likewise. diff --git a/libstdc++-v3/include/std/array b/libstdc++-v3/include/std/array index 1c7d6dc4ab1..f058c062145 100644 --- a/libstdc++-v3/include/std/array +++ b/libstdc++-v3/include/std/array @@ -339,7 +339,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION /// tuple_size template - class tuple_size; + struct tuple_size; /// Partial specialization for std::array template @@ -348,7 +348,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION /// tuple_element template - class tuple_element; + struct tuple_element; /// Partial specialization for std::array template