// Testcase for non-dependent auto in templates // { dg-do compile { target c++11 } } struct A { template void f(); } a; template void g() { auto aa = a; aa.f(); auto p = new auto (a); p->f(); } int main() { g(); }