aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/class-deduction53.C
blob: 6025dc47cf52683636c7295a4ad6d39e1b393f43 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/85135
// { dg-do compile { target c++11 } }

template<int> struct A {};

auto foo() -> A;		// { dg-error "A" }

template<typename> struct B {};

auto foo() -> A;		// { dg-error "A" }