summaryrefslogtreecommitdiff
path: root/gcc/cp/class.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-14 23:50:49 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-14 23:50:49 +0000
commit5256147c3dc8a0c7348b0ff4ca20e60624407392 (patch)
tree08f1527bee651017ed359b3b876a03967fa2ac46 /gcc/cp/class.c
parente5cfff78f542ac501dfe65b0bb667e9d9879778c (diff)
downloadgcc-5256147c3dc8a0c7348b0ff4ca20e60624407392.tar.gz
* class.c (layout_class_type): Make DECL_MODE match TYPE_MODE for
an bit-field whose width exceeds that of its type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71388 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r--gcc/cp/class.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 485e9ad3f68..582caf4279e 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -4759,6 +4759,7 @@ layout_class_type (tree t, tree *virtuals_p)
field to the size of its declared type; the rest of the
field is effectively invisible. */
DECL_SIZE (field) = TYPE_SIZE (type);
+ DECL_MODE (field) = TYPE_MODE (type);
}
else
layout_nonempty_base_or_field (rli, field, NULL_TREE,