PR c++/79056 - C++17 ICE with invalid template syntax.
[platform/upstream/gcc.git] / gcc / testsuite / g++.dg / parse / template28.C
1 // PR c++/79056
2
3 template<class> struct A {};
4
5 template<class T> void foo(A<T>=A<T>()) {} // { dg-error "" }
6
7 void bar()
8 {
9   foo(A<int>());                // { dg-error "" }
10 }