template<typename T> class Base { protected: T t; }; template<typename T> class Derived: public Base<T> { public: T get() { return t; } }; int main() { Derived<int> d; d.get(); }
Standard input is empty
prog.cpp: In member function 'T Derived<T>::get()': prog.cpp:10:22: error: 't' was not declared in this scope
Standard output is empty