[Bug c++/44535] g++ -O[ 123] generates undefined symbol

dimhen at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Jun 14 10:19:00 GMT 2010



------- Comment #1 from dimhen at gmail dot com  2010-06-14 10:19 -------
simplified testcase FAIl with -O[23]

namespace FOO {

template <typename T>
class A
{
public:
    void Enum();
    virtual void OnProv() = 0;
    virtual ~A() { }
};
typedef A<char> B;

template<typename T>
void A<T>::Enum ()
{
    OnProv ();
}
} // namespace FOO

class C {};

class D: public C, public FOO::B {
public:
    void OnProv() {}
};

void aaa()
{
    D x;
    x.Enum();
}


-- 

dimhen at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dimhen at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44535



More information about the Gcc-bugs mailing list