This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++] PATCH c++/17542


Matt Austern <austern@apple.com> writes:

| This patch issues a warning when users put an attribute in a place
| that looks reasonable but is in fact wrong.  (The documentation
| already says so.)  And if you're wondering why we don't just accept
| attributes in this position...  Well, in a sense the problem is that
| we already do.  An attribute before the class head is perfectly legal,
| it just means something different.  It applies to the declarator,
| which in this case is empty.  This is legal code that doesn't do what
| the user probably thought it did, so a warning is what's called for.
| 
| OK to commit to mainline?

>From diagnostic perspective, yes it is OK.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]