// PR c++/54858 // { dg-do compile } template struct A {}; template struct B {}; template struct C { A<0> c0; B, &C::c0> d0; // { dg-error "could not convert template argument" } A<0> c1; B, &C::c1> d1; // { dg-error "could not convert template argument" } A<0> c2; B, &C::c2> d2; // { dg-error "could not convert template argument" } A<0> c3; B, &C::c3> d3; // { dg-error "could not convert template argument" } A<0> c4; B, &C::c4> d4; // { dg-error "could not convert template argument" } A<0> c5; B, &C::c5> d5; // { dg-error "could not convert template argument" } A<0> c6; B, &C::c6> d6; // { dg-error "could not convert template argument" } A<0> c7; B, &C::c7> d7; // { dg-error "could not convert template argument" } A<0> c8; B, &C::c8> d8; // { dg-error "could not convert template argument" } A<0> c9; B, &C::c9> d9; // { dg-error "could not convert template argument" } A<0> ca; B, &C::ca> da; // { dg-error "could not convert template argument" } A<0> cb; B, &C::cb> db; // { dg-error "could not convert template argument" } }; C e;