This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ patch] [PR 9283] Implement per-class visibility (newpatch)
On Tue, 20 Apr 2004 23:06:09 -0500, Brian Ryner <bryner@brianryner.com> wrote:
> - if (decl_function_context (decl) != 0 || ! TREE_PUBLIC (decl))
> + if (TREE_CODE (*node) != RECORD_TYPE
> + && TREE_CODE (*node) != UNION_TYPE
> + && (decl_function_context (decl) != 0 || ! TREE_PUBLIC (decl)))
> {
> warning ("`%s' attribute ignored", IDENTIFIER_POINTER (name));
> return NULL_TREE;
This code should reject the attribute for types other than record/union.
Jason