blob: b9817eb9e1305ede87924e6c921c27f1f88c8507 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// PR c++/49921
// { dg-options -std=c++0x }
struct Local
{
void f();
};
Local *l;
void (Local::*ptr)();
decltype((l->*ptr)) i; // { dg-error "member function" }
// { dg-prune-output "invalid type in declaration" }
|