This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR C++/9021 and 11005
Jason Merrill <jason@redhat.com> writes:
| Hmm, I'm not sure this is right, either. Do we really want to allow people
| to keep adding attributes to a class?
I would say no. It is getting more and more complicated.
| I think it probably makes sense to use your patch, but make it conditional
| on whether or not the class is complete; if it is, then specifying
| additional attributes is an error.
|
| Thoughts?
More stringent:
(1) allow attributes only when defining the class;
(2) disallow attributes on classes (I'm not sure that would fly,
but I'm suggesting it anyway :)
-- Gaby