// PR c++/84689 // { dg-do compile { target c++11 } } struct base { void operator()(); }; struct a : base { }; struct b : base { }; struct f : a, b { using a::operator(); using b::operator(); }; template auto g(int) -> decltype(T()()); template auto g(...) -> int; using type = decltype(g(0)); using type = int;