* cp-tree.h (DECL_MUTABLE_P): Use FIELD_DECL_CHECK.
authorMarek Polacek <polacek@redhat.com>
Tue, 13 Aug 2019 15:02:30 +0000 (15:02 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 13 Aug 2019 15:02:30 +0000 (15:02 +0000)
From-SVN: r274381

gcc/cp/ChangeLog
gcc/cp/cp-tree.h

index e325825..5f1dff8 100644 (file)
@@ -1,3 +1,7 @@
+2019-08-13  Marek Polacek  <polacek@redhat.com>
+
+       * cp-tree.h (DECL_MUTABLE_P): Use FIELD_DECL_CHECK.
+
 2019-08-10  Jakub Jelinek  <jakub@redhat.com>
 
        * parser.c (cp_parser_omp_clause_name): Parse device_type.
index 72ee1d6..bdb7778 100644 (file)
@@ -3065,9 +3065,9 @@ struct GTY(()) lang_decl {
   (DECL_NONSTATIC_MEMBER_FUNCTION_P (NODE)     \
    || TREE_CODE (NODE) == FIELD_DECL)
 
-/* Nonzero for _DECL means that this member object type
+/* Nonzero for a FIELD_DECL means that this member object type
    is mutable.  */
-#define DECL_MUTABLE_P(NODE) (DECL_LANG_FLAG_0 (NODE))
+#define DECL_MUTABLE_P(NODE) (DECL_LANG_FLAG_0 (FIELD_DECL_CHECK (NODE)))
 
 /* Nonzero for _DECL means that this constructor or conversion function is
    non-converting.  */