<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - Deleted non-template inline friend function in template class causes redefinition error"
   href="https://bugs.llvm.org/show_bug.cgi?id=41253">41253</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Deleted non-template inline friend function in template class causes redefinition error
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>8.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>Frontend
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>o_kniemeyer@maxon.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The following code

  template <typename> struct C
  {
    friend void Func(C) = delete;
  };

  C<int> test;

generates the error 

  <source>:3:14: error: redefinition of 'Func'
    friend void Func(C) = delete;
                ^
  <source>:6:8: note: in instantiation of template class 'C<int>' requested
here
    C<int> test;
           ^
  <source>:3:14: note: previous definition is here
    friend void Func(C) = delete;


This might have the same cause as <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Deleted template inline friend function in template class causes redefinition error"
   href="show_bug.cgi?id=35012">bug 35012</a>, but <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Deleted template inline friend function in template class causes redefinition error"
   href="show_bug.cgi?id=35012">bug 35012</a> already appeared in
Clang 5.0, while this bug appeared in Clang 7.0.</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>