diff options
author | Jason Merrill <jason@redhat.com> | 2012-06-02 00:03:51 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2012-06-02 00:03:51 -0400 |
commit | e3c888eb0e3923981bcb914f818c29a054843d9e (patch) | |
tree | a1f209f8b5712f177fbfcf89cb917f57e6dea548 /gcc/objcp/objcp-decl.c | |
parent | b691f14cc4a69541ff6915b8d0d102bb5f0b3451 (diff) | |
download | gcc-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.c | 2 |
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 |