// PR c++/83035 // { dg-do compile { target c++11 } } // Like operator-3.C but where the lookup occurs at non-block scope. template struct S { static constexpr bool is_primary = true; }; template struct S { }; template struct S { }; template struct S { }; template struct S { }; template struct S { }; template struct S { }; template struct S { }; template struct S { }; template struct S { }; template struct S { }; template struct S*T())> { }; template struct S { }; template struct S { }; template struct S { }; template struct S { }; template struct S { }; template struct S { }; template struct S { }; template struct S { }; template struct S { }; template struct S> T())> { }; template struct S { }; template struct S { }; template struct S { }; template struct S { }; template struct S { }; template struct S { }; template struct S T())> { }; template struct S { }; template struct S= T())> { }; #if __cplusplus > 201703L template struct S T())> { }; #endif template struct S { }; template struct S { }; template struct S { }; template struct S { }; template struct S { }; template struct S { }; template struct S { }; template struct S { }; template struct S>= T())> { }; namespace N { struct A { }; } #include "operator-3-ops.h" static_assert(S::is_primary, "");