#include <iostream> template <typename T> class base { }; struct myStruct; class derived : base<derived::myStruct> { public: struct myStruct { }; }; int main () { return 0; }
Standard input is empty
prog.cpp:10:22: error: incomplete type 'derived' used in nested name specifier prog.cpp:10:22: error: incomplete type 'derived' used in nested name specifier prog.cpp:10:39: error: template argument 1 is invalid
Standard output is empty