1 2 3 4 5 6 7 8 9
// Origin PR c++/51476 // { dg-do compile { target c++11 } } template<int> struct A {}; struct B { int i; A<&B::i> a; // { dg-error "could not convert template argument" } };