blob: 61b361f894af5be24dfe7bde50f704fd1d76952e [file] [log] [blame]
// RUN: clang-cc -fsyntax-only -verify %s
template<typename T, typename U>
struct X0 {
void f(T x, U y) {
x + y; // expected-error{{invalid operands}}
}
};
struct X1 { };
template struct X0<int, float>;
template struct X0<int*, int>;
template struct X0<int X1::*, int>; // expected-note{{instantiation of}}