OSDN Git Service

* decl.c (grokdeclarator): Remove const and volatile from type after
[pf3gnuchains/gcc-fork.git] / gcc / cp / class.c
index 337c090..7440a8a 100644 (file)
@@ -3499,7 +3499,8 @@ finish_struct_1 (t, warn_anon)
                  cp_error_at ("  in declaration of `%D'", x);
                }
              else if (width > TYPE_PRECISION (TREE_TYPE (x))
-                      && TREE_CODE (TREE_TYPE (x)) != ENUMERAL_TYPE)
+                      && TREE_CODE (TREE_TYPE (x)) != ENUMERAL_TYPE
+                      && TREE_CODE (TREE_TYPE (x)) != BOOLEAN_TYPE)
                {
                  cp_warning_at ("width of `%D' exceeds its type", x);
                }