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