2 // Copyright (C) 2002 Free Software Foundation
3 // Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net>
10 void foo(void (A::*)(int)); // { dg-error "candidate" "" }
15 void (A::*p)() = &A::f;
16 void (A::*q)() = &(A::f); // { dg-error "parenthesized" "" }
17 foo(&g<int>); // { dg-error "" "" }