virtualcall.h 200 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 namespace header { class Z { public: Z() { foo(); // impure-warning {{Call to virtual method 'Z::foo' during construction bypasses virtual dispatch}} } virtual int foo(); }; }