blob: f85497674dfbf8edff28e7dfc19f732ee9ffe2ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Build don't link:
template <class T>
struct S1
{
};
template <class T>
struct S2
{
typedef T* pointer_t;
};
int f(S2<S1<int> >::pointer_t p1, S2<S1<int> >::pointer_t p2)
{
return (int) (p1 - p2);
}
|