summaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2008-01-22 17:03:12 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2008-01-22 17:03:12 +0000
commit2cb0e5d93bd600a6ed3781755c8080f8ae2db74c (patch)
treebdf1a2c50a6ec8b32870c8f61c89d45760a612c7 /gcc/tree.c
parentad1375863fa7cb559a6adcf93d98b49a7a676944 (diff)
downloadgcc-2cb0e5d93bd600a6ed3781755c8080f8ae2db74c.tar.gz
PR c++/34914
* c-common.c (handle_vector_size_attribute): Only allow integral, scalar float and fixed point types. Handle OFFSET_TYPE the same way as pointer, array etc. types. * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE. * g++.dg/ext/vector10.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131729 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index b6b3eef26e1..f61e24bac09 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -7631,6 +7631,11 @@ reconstruct_complex_type (tree type, tree bottom)
inner,
TREE_CHAIN (TYPE_ARG_TYPES (type)));
}
+ else if (TREE_CODE (type) == OFFSET_TYPE)
+ {
+ inner = reconstruct_complex_type (TREE_TYPE (type), bottom);
+ outer = build_offset_type (TYPE_OFFSET_BASETYPE (type), inner);
+ }
else
return bottom;