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