PR c++/85135 - ICE with omitted template arguments.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / class-deduction53.C
blob6025dc47cf52683636c7295a4ad6d39e1b393f43
1 // PR c++/85135
2 // { dg-do compile { target c++11 } }
4 template<int> struct A {};
6 auto foo() -> A;                // { dg-error "A" }
8 template<typename> struct B {};
10 auto foo() -> A;                // { dg-error "A" }