aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/decltype31.C
blob: bffcf1c0d8b36a0f1b7fa25a935b1932ba435b1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/49921
// { dg-do compile { target c++11 } }

struct Local
{
  void f();
};

Local *l;
void (Local::*ptr)();
decltype((l->*ptr)) i;	       // { dg-error "member function" }

// { dg-prune-output "invalid type in declaration" }