// PR c++/89089 // { dg-do compile { target c++11 } } template struct A {}; template struct A { private: [[no_unique_address]] A a; }; struct B { template A operator()(U...) { return A(); } } f; auto fn = f (int{}, [] {});