diff options
author | Jason Merrill <jason@redhat.com> | 2014-01-30 09:21:31 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2014-01-30 09:21:31 -0500 |
commit | 404c2aeaae41097fd9f37c1ea74fb87cd1de6d27 (patch) | |
tree | 5a15d54643362248efd6d68a1ba93600967dfa32 /gcc/tree.c | |
parent | fc044323f492ebb6913398604104f293df99dbe3 (diff) | |
download | gcc-404c2aeaae41097fd9f37c1ea74fb87cd1de6d27.zip gcc-404c2aeaae41097fd9f37c1ea74fb87cd1de6d27.tar.gz gcc-404c2aeaae41097fd9f37c1ea74fb87cd1de6d27.tar.bz2 |
re PR c++/59633 (ICE with __attribute((vector_size(...))) for enum)
PR c++/59633
gcc/
* tree.c (walk_type_fields): Handle VECTOR_TYPE.
gcc/cp/
* decl2.c (attributes_naming_typedef_ok): New.
* cp-tree.h: Declare it.
* decl.c (grokdeclarator): Check it.
* tree.c (no_linkage_check): Handle VECTOR_TYPE.
From-SVN: r207302
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -10817,6 +10817,7 @@ walk_type_fields (tree type, walk_tree_fn func, void *data, { case POINTER_TYPE: case REFERENCE_TYPE: + case VECTOR_TYPE: /* We have to worry about mutually recursive pointers. These can't be written in C. They can in Ada. It's pathological, but there's an ACATS test (c38102a) that checks it. Deal with this |