* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / decltype61.C
blob0159330d79c00e66ae475b9b552fce07cf44895b
1 // DR 1510, PR c++/60420
2 // { dg-do compile { target c++11 } }
4 struct MyIter
6   int& operator*();
7 };
9 void foo(MyIter begin)
11   auto x = [](const decltype(*begin)) { };
14 template<typename Iterator>
15 void bar(Iterator begin)
17   auto x = [](const decltype(*begin)) { };
20 template void bar<MyIter>(MyIter);