blob: e6b72198281c7549fcc8e3ad75e6264db020a0cc [file] [log] [blame]
// C++ PR/2521
// Copyright (C) 2002 Free Software Foundation
// Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net>
// { dg-do compile }
struct A
{
void f();
void foo(void (A::*)(int)); // { dg-message "void A::foo|no known conversion" }
template<typename T>
void g(T);
void h()
{
void (A::*p)() = &A::f;
void (A::*q)() = &(A::f); // { dg-error "parenthesized" }
foo(&g<int>); // { dg-error "no matching" }
}
};