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] Class template attributes and canonical types (PR c++/35074)


+ 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


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