view gcc/testsuite/g++.dg/template/partial-specialization.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

// Contributed by Gabriel Dos Reis <gdr@codesourcery.com>
// Origin: philippeb@videotron.ca
// { dg-do compile }

struct B
{
	int i;
};

template <class _T, class _M, _M _T::* _V>
	struct A;

template <class _T, int _T::* _V>
	struct A<_T, int, _V>
	{
	};

int main()
{
	A<B, int, & B::i> a;
}