// Contributed by Dodji Seketeli // Origin PR c++/26693 // { dg-do compile } struct C0 { }; template struct C1 { typedef C0 TypedefedC0; template void foo (TypedefedC0 *, W) { } template C1 (W w) { TypedefedC0 c; foo (&c, w); } }; C0 c0; C1 c1 (&c0);