1// Contributed by Dodji Seketeli <dodji@redhat.com> 2// Origin PR c++/26693 3// { dg-do compile } 4 5struct C0 6{ 7}; 8 9template<class T, class U> 10struct C1 11{ 12 typedef C0 TypedefedC0; 13 14 template<class W> 15 void foo (TypedefedC0 *, W) 16 { 17 } 18 19 template<class W> C1 (W w) 20 { 21 TypedefedC0 c; 22 foo (&c, w); 23 } 24 25}; 26C0 c0; 27C1<int, char> c1 (&c0); 28