<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:rtrieu@google.com" title="rtrieu@google.com">rtrieu@google.com</a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - clang assertion failure on incompatible std::vector comparison."
   href="http://llvm.org/bugs/show_bug.cgi?id=14115">bug 14115</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>rtrieu@google.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - clang assertion failure on incompatible std::vector comparison."
   href="http://llvm.org/bugs/show_bug.cgi?id=14115#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - clang assertion failure on incompatible std::vector comparison."
   href="http://llvm.org/bugs/show_bug.cgi?id=14115">bug 14115</a>
              from <span class="vcard"><a class="email" href="mailto:rtrieu@google.com" title="rtrieu@google.com">rtrieu@google.com</a>
</span></b>
        <pre>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) {}</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>