// PR c++/12397 struct foo { }; template struct bar { bar(){} int i; bar (const bar& foo) : i (foo.i) {} }; int main() { bar b1; bar b2(b1); }