aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp1y/auto-neg1.C
blob: a6f31f63def3c699e562f79534a511a66af557a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/60312
// { dg-do compile { target c++1y } }

template<typename> struct A;

template<> struct A<auto>	// { dg-error "auto|template argument" }
{
  template<int> void foo();
};

void bar()
{
  A<auto>().foo<0>();		// { dg-error "auto|template argument" }
}

// { dg-prune-output "expected" }