summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/crash26.C
blob: 94682dde1e52059b248054b822cca7b4e1548b0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// Origin: Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>

double f(double);
typedef double (*M)(double);

class A {
public:
	template <const M n> void g(); 
};

class B: public A {
public:
	void g() { A::g<f>(); }
};