parent
4c8c7b0ddf
commit
370df4c801
22
gcc/testsuite/g++.dg/template/partial-specialization.C
Normal file
22
gcc/testsuite/g++.dg/template/partial-specialization.C
Normal file
@ -0,0 +1,22 @@
|
||||
// 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user