1 // PR c++/49921 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" } 12 13 // { dg-prune-output "invalid type in declaration" } 14