// Origin: PR c++/42820 // { dg-do compile } template struct vector{}; struct Traits{struct Primitive{struct Id{};};}; template struct Tree_vs_naive { typedef typename Tree::Primitive Primitive; void f() const { typedef vector Id_vector; } }; template void test_hint_strategies() { vector v; } int main(void) { test_hint_strategies(); }