* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr54318.C
blob4dac31b883a8be3541681d9a55c0f1c4268c8ceb
1 // PR c++/54318
2 // { dg-do compile { target c++11 } }
4 template <typename T>
5 struct wrapped
7   typedef T type;
8 };
10 template <typename T>
11 typename T::type unwrap1(T);
13 int unwrap(int);
15 template <typename T>
16 auto unwrap(T t) -> decltype(unwrap(unwrap1(t)))
18   return unwrap(unwrap1(t));
21 int main()
23   unwrap(wrapped<wrapped<int>>());