1// { dg-do compile } 2 3// Origin: Giovanni Bajo <giovannibajo@libero.it> 4 5// PR c++/13092: ICE taking address of member which is non-dependent 6 7struct S 8{ 9 int i; 10}; 11 12template<int S::*p> 13struct X 14{}; 15 16template <class T> 17struct Foo 18{ 19 X<&S::i> x; 20}; 21 22template struct Foo<void>; 23