1 // Contributed by Gabriel Dos Reis <gdr@codesourcery.com> 2 // Origin: philippeb@videotron.ca 3 // { dg-do compile } 4 5 struct B 6 { 7 int i; 8 }; 9 10 template <class _T, class _M, _M _T::* _V> 11 struct A; 12 13 template <class _T, int _T::* _V> 14 struct A<_T, int, _V> 15 { 16 }; 17 18 int main() 19 { 20 A<B, int, & B::i> a; 21 } 22 23