Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.robertl/ice990323-5.C

raw
1 // { dg-do assemble }
2 // check attempting to throw an overloaded function
3
4 struct A {
5 void f(int);
6 void f(long);
7 };
8
9 void g()
10 {
11 throw &A::f; // { dg-error "" } insufficient context
12 }