1 // PR c++/66130 2 // { dg-do compile { target c++11 } } 3 4 struct Local 5 { 6 void f(); 7 }; 8 9 Local *l; 10 void (Local::*ptr)(); 11 decltype((l->*ptr)) i; // { dg-error "member function of type 'void \\(Local::\\)\\(\\)'" } 12