public inbox for libstdc++@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] PR libstdc++/82716 avoid stupid -Wmismatched-tags warnings
@ 2017-10-25 13:56 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2017-10-25 13:56 UTC (permalink / raw)
  To: libstdc++, gcc-patches

[-- Attachment #1: Type: text/plain, Size: 259 bytes --]

It's just easier to change these than keep having to discuss it.

	PR libstdc++/82716
	* include/std/array (tuple_size, tuple_element): Change class-key
	from class to struct, to avoid annoying Clang warnings.

Tested powerpc64le-linux, committed to trunk.



[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 1085 bytes --]

commit 2e6dfb8a5d44047b7d0e3e2a502218cd68647e5f
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Oct 25 14:20:16 2017 +0100

    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.

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<typename _Tp>
-    class tuple_size;
+    struct tuple_size;
 
   /// Partial specialization for std::array
   template<typename _Tp, std::size_t _Nm>
@@ -348,7 +348,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
   /// tuple_element
   template<std::size_t _Int, typename _Tp>
-    class tuple_element;
+    struct tuple_element;
 
   /// Partial specialization for std::array
   template<std::size_t _Int, typename _Tp, std::size_t _Nm>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-10-25 13:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-25 13:56 [PATCH] PR libstdc++/82716 avoid stupid -Wmismatched-tags warnings Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).