// Origin: PR c++/38357 // { dg-do compile } class BUG { public: bool name() { return true; } }; template struct BUG1_5 { }; template class BUG2 : BUG { public: typedef BUG1_5 ptr; // { dg-error "could not convert template argument" } }; int main() { BUG2 b; return 0; }