PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / incomplete11.C
blob38c92e3d337660710e422c8eef237cc242cf5e3f
1 // PR c++/84082
2 // { dg-do compile }
3 // { dg-options "" }
5 struct A;
7 template<typename> void foo()
9   static int a[A().operator=(A())];     // { dg-error "invalid use of incomplete type 'struct A'" }