<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 --- - Problem with C++11 templates and friend (version 3.5)"
   href="http://llvm.org/bugs/show_bug.cgi?id=20877">20877</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Problem with C++11 templates and friend (version 3.5)
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>jwillemsen@remedy.nl
          </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=13007" name="attach_13007" title="clang 3.5 zipped preprocessed file">attachment 13007</a> <a href="attachment.cgi?id=13007&action=edit" title="clang 3.5 zipped preprocessed file">[details]</a></span>
clang 3.5 zipped preprocessed file

The attached preprocessed file causes the following compiler error on our code.
It does compile with gcc and icpc, but not with clang. I haven't been able to
reproduce outside of our code base until now. Ignore the missing exception
warnings for the moment.

Preprocessed file was created on a fc20 x86_64 system using clang 3.5 binary
version

PolicyC.cpp:169:18: error: no matching function for call to 'make_reference'
          return CORBA::make_reference<Policy> (new
TAOX11_NAMESPACE::Object_proxy (_pp_copy));
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./PolicyC.h:243:37: note: candidate template ignored: couldn't infer template
argument ''
      friend object_reference<_Tp1> make_reference(Args&& ...args);</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>