This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Class template attributes and canonical types (PR c++/35074)
- From: Jason Merrill <jason at redhat dot com>
- To: Doug Gregor <doug dot gregor at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 04 Feb 2008 22:34:07 -0500
- Subject: Re: [C++ PATCH] Class template attributes and canonical types (PR c++/35074)
- References: <24b520d20802041544y48479bfh26bb02ac9c2ecbb0@mail.gmail.com>
+ if (TYPE_ATTRIBUTES (variant) == old_attrs)
This should always be true; we ignore attributes applied to a class
other than on the definition.
+ TYPE_ATTRIBUTES (variant) = TYPE_ATTRIBUTES (*decl_p);
And this a no-op, since I added the new attributes to the end of the
chain. But it's probably better to add them to the beginning, like
decl_attributes does. Want to make that change?
Jason