<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:yaron.keren@gmail.com" title="Yaron Keren <yaron.keren@gmail.com>"> <span class="fn">Yaron Keren</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Assertion failed: TemplateTypeParm->getDepth() == 0 && "Can't deduce with depth > 0""
   href="https://bugs.llvm.org/show_bug.cgi?id=26782">bug 26782</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;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Assertion failed: TemplateTypeParm->getDepth() == 0 && "Can't deduce with depth > 0""
   href="https://bugs.llvm.org/show_bug.cgi?id=26782#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Assertion failed: TemplateTypeParm->getDepth() == 0 && "Can't deduce with depth > 0""
   href="https://bugs.llvm.org/show_bug.cgi?id=26782">bug 26782</a>
              from <span class="vcard"><a class="email" href="mailto:yaron.keren@gmail.com" title="Yaron Keren <yaron.keren@gmail.com>"> <span class="fn">Yaron Keren</span></a>
</span></b>
        <pre>as of r305089, fails with errors:

file.cpp:2:30: error: partial specialization of 'function' does not use any of
its template parameters
  template <typename> struct function<void()> {
                             ^
file.cpp:6:22: error: no viable conversion from '(lambda at file.cpp:6:26)' to
'function<void ()>'
    function<void()> f = [] {};
                     ^   ~~~~~
file.cpp:2:30: note: candidate constructor (the implicit copy constructor) not
viable: no known conversion from '(lambda at file.cpp:6:26)' to 'const
function<void ()> &' for 1st argument
  template <typename> struct function<void()> {
                             ^
file.cpp:2:30: note: candidate constructor (the implicit move constructor) not
viable: no known conversion from '(lambda at file.cpp:6:26)' to 'function<void
()> &&' for 1st argument
  template <typename> struct function<void()> {
                             ^
file.cpp:3:34: note: candidate template ignored: couldn't infer template
argument '_Functor'
    template <typename _Functor> function(_Functor) {}
                                 ^
file.cpp:6:26: note: candidate function
    function<void()> f = [] {};
                         ^
2 errors generated.</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>