2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / decltype31.C
blobbffcf1c0d8b36a0f1b7fa25a935b1932ba435b1e
1 // PR c++/49921
2 // { dg-do compile { target c++11 } }
4 struct Local
6   void f();
7 };
9 Local *l;
10 void (Local::*ptr)();
11 decltype((l->*ptr)) i;         // { dg-error "member function" }
13 // { dg-prune-output "invalid type in declaration" }