diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-26 21:41:34 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-26 21:41:34 +0000 |
commit | 1bc622d0c1aaf6e6f7f18095617a16d947e97ad5 (patch) | |
tree | 15a59dbb0bbb865d812d1a04ab280451ff56718c /gcc/cp | |
parent | 40f615b39055f0a6cfe2f1db67fcdde8fbb7a0c3 (diff) | |
download | gcc-1bc622d0c1aaf6e6f7f18095617a16d947e97ad5.tar.gz |
PR c++/66216
* class.c (finish_struct): Call fixup_attribute_variants.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-5-branch@225088 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/cp/class.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 4a696675471..60a00aa17bc 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ 2015-06-26 Jason Merrill <jason@redhat.com> + PR c++/66216 + * class.c (finish_struct): Call fixup_attribute_variants. + PR c++/66067 * mangle.c (write_template_args): Handle 0 length TREE_VEC. diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 9f189fb5eaf..12e62dff177 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -6825,6 +6825,7 @@ finish_struct (tree t, tree attributes) unreverse_member_declarations (t); cplus_decl_attributes (&t, attributes, (int) ATTR_FLAG_TYPE_IN_PLACE); + fixup_attribute_variants (t); /* Nadger the current location so that diagnostics point to the start of the struct, not the end. */ |