aboutsummaryrefslogtreecommitdiff
path: root/gcc/objcp/objcp-decl.c
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/objcp-decl.c
parentb691f14cc4a69541ff6915b8d0d102bb5f0b3451 (diff)
downloadgcc-e3c888eb0e3923981bcb914f818c29a054843d9e.zip
gcc-e3c888eb0e3923981bcb914f818c29a054843d9e.tar.gz
gcc-e3c888eb0e3923981bcb914f818c29a054843d9e.tar.bz2
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/objcp-decl.c')
-rw-r--r--gcc/objcp/objcp-decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/objcp/objcp-decl.c b/gcc/objcp/objcp-decl.c
index ecc2b2b..8040469 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