blob: 5d4a72e1a7bf81e41e8ce64d09ef5de1a11a99d1 [file] [log] [blame]
// PR c++/66130
// { dg-do compile { target c++11 } }
struct Local
{
void f();
};
Local *l;
void (Local::*ptr)();
decltype((l->*ptr)) i; // { dg-error "member function of type 'void \\(Local::\\)\\(\\)'" }