blob: 38c92e3d337660710e422c8eef237cc242cf5e3f [file] [log] [blame]
// PR c++/84082
// { dg-do compile }
// { dg-options "" }
struct A;
template<typename> void foo()
{
static int a[A().operator=(A())]; // { dg-error "invalid use of incomplete type 'struct A'" }
}