summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/crash37.C
blob: c07ccd591515476e284c92722334668c5beac32f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do assemble  }
// Origin: Jens Maurer <jmaurer@menuett.rhein-main.de>

template<class T, void (T::*f)(int)>
class C { };

template<class T>
C<T, &T::output> call(T& obj)
{   	return C<T, &T::output>();
}

class Test {
public:
	void output(int);
};

void sub()
{
	Test t;
	call(t);
}