blob: c3d76133dbd46613e246ad67636db81d5d9cc103 [file] [log] [blame]
// PR c++/37646
struct A
{
void foo();
void bar(int i)
{
void (*p)() = i ? foo : foo; // { dg-error "invalid use of member" }
}
};