<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Clang doesn't see extra definitions of operator."
   href="http://llvm.org/bugs/show_bug.cgi?id=17075">17075</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang doesn't see extra definitions of operator.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.3
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++11
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>o01eg@yandex.ru
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=11136" name="attach_11136" title="Test code">attachment 11136</a> <a href="attachment.cgi?id=11136&action=edit" title="Test code">[details]</a></span>
Test code

Clang uses only 'template <class T> Stream& Stream::operator>>(T&)' and doesn't
see another matching definition 'template<class T> Stream& operator>>(Stream&,
std::vector<T>&)':

$ clang++ -std=c++11 -Wall -pedantic -Wextra test-sfinae.cpp 
test-sfinae.cpp:7:5: error: no member named 'Serialize' in 'std::vector<int,
std::allocator<int> >'
                t.Serialize(*this);
                ~ ^
test-sfinae.cpp:33:4: note: in instantiation of function template
specialization 'Stream::operator>><std::vector<int, std::allocator<int> > >'
requested here
        s >> data;
          ^
1 error generated.


Gcc 4.8.1 and 4.6.4 successfully compiles it. Clang without -std=c++11 as well.</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>