]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/bitmap.h
PR c++/61339 - add mismatch between struct and class [-Wmismatched-tags] to non-bugs
[thirdparty/gcc.git] / gcc / bitmap.h
index 39f509db611edc1708484b76043cc9ae30d39dc8..0e3ffc8862f466ec4aae70db9658e29d83c1e08d 100644 (file)
@@ -212,8 +212,9 @@ along with GCC; see the file COPYING3.  If not see
 #include "obstack.h"
 
 /* Bitmap memory usage.  */
-struct bitmap_usage: public mem_usage
+class bitmap_usage: public mem_usage
 {
+public:
   /* Default contructor.  */
   bitmap_usage (): m_nsearches (0), m_search_iter (0) {}
   /* Constructor.  */
@@ -321,7 +322,8 @@ struct GTY((chain_next ("%h.next"))) bitmap_element {
 /* Head of bitmap linked list.  The 'current' member points to something
    already pointed to by the chain started by first, so GTY((skip)) it.  */
 
-struct GTY(()) bitmap_head {
+class GTY(()) bitmap_head {
+public:
   static bitmap_obstack crashme;
   /* Poison obstack to not make it not a valid initialized GC bitmap.  */
   CONSTEXPR bitmap_head()