1// PR c++/41183 2// { dg-do compile } 3 4void foo (const char *); 5 6template <int *> 7struct A 8{ 9 template <typename T> A (const int &, T); 10 int i; 11}; 12 13template <int *X> 14template <typename T> 15A<X>::A (const int &j, T) : i(j) 16{ 17 foo (0); 18 foo (0); 19 foo (__PRETTY_FUNCTION__); 20} 21 22int N; 23 24struct B 25{ 26 B (); 27 A<&N> a; 28}; 29 30B::B() : a(N, 0) {} 31