1 namespace header { 2 class Z { 3 public: Z()4 Z() { 5 foo(); // impure-warning {{Call to virtual method 'Z::foo' during construction bypasses virtual dispatch}} 6 } 7 virtual int foo(); 8 }; 9 } 10