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 7 struct S 8 { 9 int i; 10 }; 11 12 template<int S::*p> 13 struct X 14 {}; 15 16 template <class T> 17 struct Foo 18 { 19 X<&S::i> x; 20 }; 21 22 template struct Foo<void>; 23