setting constp and volatilep.
* class.c (finish_struct_1): Don't warn about bool bitfield larger
than one bit.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18843
138bc75d-0d04-0410-961f-
82ee72b054a4
+Thu Mar 26 11:16:30 1998 Jason Merrill <jason@yorick.cygnus.com>
+
+ * decl.c (grokdeclarator): Remove const and volatile from type after
+ setting constp and volatilep.
+
+ * class.c (finish_struct_1): Don't warn about bool bitfield larger
+ than one bit.
+
Thu Mar 26 10:25:52 1998 Mark Mitchell <mmitchell@usa.net>
* pt.c (convert_nontype_argument): STRIP_NOPS where appropriate.
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);
}
constp = !! RIDBIT_SETP (RID_CONST, specbits) + TYPE_READONLY (type);
volatilep = !! RIDBIT_SETP (RID_VOLATILE, specbits) + TYPE_VOLATILE (type);
+ type = TYPE_MAIN_VARIANT (type);
staticp = 0;
inlinep = !! RIDBIT_SETP (RID_INLINE, specbits);
virtualp = RIDBIT_SETP (RID_VIRTUAL, specbits);