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]

[trans-mem] TM attributes vs C++ inheritance


The language specification for C++ allows for putting attributes on the class itself, which then get automatically pushed out to any member functions defined by that class. Further, it defines how these attributes get propagated down the class inheritance tree. Finally, it has special rules for how these attributes are applied to virtual member functions, which ensure that when the virtual method is called on the base class, all of the implementation methods in the derived classes are compatible.

This patch appears to do the trick. Comments on the implementation from the C++ maintainers?


r~

Attachment: d-tm-c++-2
Description: Text document


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