// PR c++/98659 // { dg-do compile } template struct enable_if; struct function { template void operator=(_F); }; struct map { function operator[](int); }; enum { E }; template void foo (); template typename enable_if::type foo (); void bar () { map m; m[E] = foo; }