summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/ice990323-5.C
blob: c0dfcd592ebefadf1d0d20aac40b08f61731496d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }
// check attempting to throw an overloaded function

struct A {
	void f(int);
	void f(long);
};

void g()
{
	throw &A::f; // { dg-error "" } insufficient context
}