Will the following program cause any problem during compiling and execution process?
<p>Will the following program cause any problem during compiling and execution process?</p>

<pre><code>class A{
  public: virtual void foo(){}
};

class B:public A{};

int main(){
    B b;
    b.foo();
}
</code></pre>
