------- Comment #3 from rguenth at gcc dot gnu dot org  2010-02-11 14:46 -------
class T;
class L { };
class P : public L
{
  typedef void (__attribute__((__stdcall__)) T::*F) (L*);
  void f(bool aAdd);
};
class T
{
public:
    virtual void __attribute__((__stdcall__)) A(L *listener) = 0;
    virtual void __attribute__((__stdcall__)) R(L *listener) = 0;
};
void P::f(bool aAdd)
{
  F addRemoveEventListener = (aAdd ? &T::A : &T::R);
}


we seem to fail to unify pmf types when the stdcall attribute is applied.


-- 


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

Reply via email to