template<typename A> struct foo { int x; }; template<typename A> struct bar : foo<A> { bar() { x = 3; } };
Done