#include #include template class Parent { public: class Child { public: template void childDummyFunction() { } }; template void parentFunction() { Child child; child.childDummyFunction(); } }; int main() { Parent sys; sys.parentFunction(); std::cout << "Hello, " << "!\n"; } /* main.cpp: In member function ‘void Parent::parentFunction()’: main.cpp:19:47: error: expected primary-expression before ‘...’ token child.childDummyFunction(); ^~~ main.cpp:19:47: error: expected ‘;’ before ‘...’ token */