aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2015-06-26 17:31:13 -0400
committerJason Merrill <jason@gcc.gnu.org>2015-06-26 17:31:13 -0400
commite0ff153d398cdeb1864aa64f0045091c8bb2de98 (patch)
tree43e748bc07125307f47d45b7f30bc376ea32a9cf /gcc/cp
parent9579e906e237d5d6b08732331140e2c239b23ae1 (diff)
downloadgcc-e0ff153d398cdeb1864aa64f0045091c8bb2de98.zip
gcc-e0ff153d398cdeb1864aa64f0045091c8bb2de98.tar.gz
gcc-e0ff153d398cdeb1864aa64f0045091c8bb2de98.tar.bz2
re PR c++/66216 (Defaulted Operators and constructors not working with aligned attribute)
PR c++/66216 * class.c (finish_struct): Call fixup_attribute_variants. From-SVN: r225087
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog3
-rw-r--r--gcc/cp/class.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 5bfebe2..719ba06 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++/66684
* typeck2.c (merge_exception_specifiers): Allow different
noexcept-specifiers if we've had errors.
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index f4e4f85..be31de2 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -6820,6 +6820,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. */