Testcase from PR #3350

From-SVN: r44820
This commit is contained in:
Gabriel Dos Reis 2001-08-12 08:08:42 +00:00
parent 4c8c7b0ddf
commit 370df4c801
1 changed files with 22 additions and 0 deletions

View 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;
}