blob: 61b361f894af5be24dfe7bde50f704fd1d76952e [file] [log] [blame]
Douglas Gregor5f62c5e2009-05-14 23:26:13 +00001// RUN: clang-cc -fsyntax-only -verify %s
2
3template<typename T, typename U>
4struct X0 {
5 void f(T x, U y) {
6 x + y; // expected-error{{invalid operands}}
7 }
8};
9
10struct X1 { };
11
12template struct X0<int, float>;
13template struct X0<int*, int>;
14template struct X0<int X1::*, int>; // expected-note{{instantiation of}}