unplugged-system/external/google-fruit/configuration/bazel/clang_arbitrary_overload_resolution_bug.cpp

12 lines
213 B
C++
Raw Normal View History

template <typename T, typename U>
struct Pair {};
struct Map : public Pair<int, float>, Pair<int, char> {};
template <typename Value>
Value f(Pair<int, Value>*) { return Value(); }
int main() {
f((Map*)0);
}