summaryrefslogtreecommitdiff
path: root/gcc/objcp
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2012-06-02 00:03:51 -0400
committerJason Merrill <jason@gcc.gnu.org>2012-06-02 00:03:51 -0400
commite3c888eb0e3923981bcb914f818c29a054843d9e (patch)
treea1f209f8b5712f177fbfcf89cb917f57e6dea548 /gcc/objcp
parentb691f14cc4a69541ff6915b8d0d102bb5f0b3451 (diff)
re PR c++/52973 (visibility attribute for class is not passed to its members)
PR c++/52973 * parser.c (cp_parser_class_head): Apply attributes here. * semantics.c (begin_class_definition): Not here. * cp-tree.h: Adjust. From-SVN: r188137
Diffstat (limited to 'gcc/objcp')
-rw-r--r--gcc/objcp/ChangeLog5
-rw-r--r--gcc/objcp/objcp-decl.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/objcp/ChangeLog b/gcc/objcp/ChangeLog
index bed3b9dcd25..28b52e81237 100644
--- a/gcc/objcp/ChangeLog
+++ b/gcc/objcp/ChangeLog
@@ -1,3 +1,8 @@
+2012-06-02 Jason Merrill <jason@redhat.com>
+
+ * objcp-decl.c (objcp_start_struct): Adjust for change in
+ begin_class_definition prototype.
+
2011-10-14 Nicola Pero <nicola.pero@meta-innovation.com>
* Make-lang.in (OBJCXX_OBJS): Added objc-map.o.
diff --git a/gcc/objcp/objcp-decl.c b/gcc/objcp/objcp-decl.c
index ecc2b2b3cbb..80404695f99 100644
--- a/gcc/objcp/objcp-decl.c
+++ b/gcc/objcp/objcp-decl.c
@@ -49,7 +49,7 @@ objcp_start_struct (location_t loc ATTRIBUTE_UNUSED,
CLASSTYPE_DECLARED_CLASS (s) = 0; /* this is a 'struct', not a 'class'. */
xref_basetypes (s, NULL_TREE); /* no base classes here! */
- return begin_class_definition (s, NULL_TREE);
+ return begin_class_definition (s);
}
tree