summaryrefslogtreecommitdiff
path: root/clang/test/SemaTemplate/qualified-names-diag.cpp
blob: b2df47bfff4cef7f4673d49ce981af4481f28ea8 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %clang_cc1 -fsyntax-only -verify %s

namespace std {
  template<typename T> class vector { }; // expected-note{{candidate}}
}

typedef int INT;
typedef float Real;

void test() {
  using namespace std;

  std::vector<INT> v1;
  vector<Real> v2;
  v1 = v2; // expected-error{{no viable overloaded '='}}
}