// Origin: PR c++/43558 // { dg-do compile } class Compressible; template class Engine; template class Engine { public: typedef T Element_t; //Element_t read(int); T read(int); }; template T Engine::read(int) { } Engine x;