* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / auto20.C
blobfe9925d0f3f198479035e15dddca1099e7fbf11a
1 // Test for proper non-deduced context handling of the initializer
2 // for an auto declaration/new.
3 // { dg-do compile { target c++11 } }
5 struct with_apply
7   template <unsigned>
8   void apply(const double&){}
9 };
11 auto p = &with_apply::apply<0>;
12 auto pp = new auto(&with_apply::apply<0>);
14 template <class T>
15 void f()
17   auto p = &T::template apply<0>;
20 template void f<with_apply>();