------- Comment #8 from hjl dot tools at gmail dot com 2009-06-26 16:14 ------- For C++:
class Foo { private: virtual void foo1 () { printf ("I am %s\n", __PRETTY_FUNCTION__); } public: virtual void __attribute__ ((ifunc)) foo () { return &Foo::foo1; } }; class Bar : public Foo { private: void foo1 () { printf ("I am %s\n", __PRETTY_FUNCTION__); } public: void foo () { return &Bar::foo1; } }; Should Bar::foo inherit the ifun attribute from Foo::foo? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40528