repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
partial-specialization.C
blob
feaeb2fbfce1a44a9a08ca3259d832f52671f051
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