http://llvm.org/bugs/show_bug.cgi?id=14115

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |FIXED

--- Comment #4 from [email protected] ---
Given:

template<class> class base {};
template<class> class vector : base<int> {};
template<class T> void f(const vector<T>& x, const vector<T>& y) {}

int main() {
  vector<int> a;
  vector<float> b;
  f(a, b);
}

Clang now produces this message instead of crashing:

pr14115.cc:9:3: error: no matching function for call to 'f'
  f(a, b);
  ^
pr14115.cc:4:24: note: candidate template ignored: deduced conflicting types
for parameter 'T' ('int' vs. 'float')
template<class T> void f(const vector<T>& x, const vector<T>& y) {}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to