1 2 3 4 5 6 7 8 9 10 11
class A { public: int m_int; }; class B: public A { public: B():m_int(0){} };
1 2 3
t.cpp: In constructor 'B::B()': Line 10: error: class 'B' does not have any field named 'm_int' compilation terminated due to -Wfatal-errors.