* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / decltype50.C
blobdc3332ac5253f33f38878a64f9d05577454e4b5c
1 // PR c++/52597
2 // { dg-require-effective-target c++11 }
4 struct A {
5    int zip();
7    decltype(zip) bar0; // { dg-error "invalid use of non-static member function" }
8    void bar1() {
9      typedef decltype(this->A::zip) x; // { dg-error "invalid use of non-static member function" }
10    }
11    void bar2() {
12      typedef decltype(A::zip) x; // { dg-error "invalid use of non-static member function" }
13    }
16 typedef decltype(A().zip) x; // { dg-error "invalid use of non-static member function" }
18 // { dg-prune-output "invalid type in declaration" }