<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:popizdeh@gmail.com" title="Nikola Smiljanić <popizdeh@gmail.com>"> <span class="fn">Nikola Smiljanić</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - clang marks globals as used in lambda in unused default argument"
   href="http://llvm.org/bugs/show_bug.cgi?id=12064">bug 12064</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>popizdeh@gmail.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 marks globals as used in lambda in unused default argument"
   href="http://llvm.org/bugs/show_bug.cgi?id=12064#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - clang marks globals as used in lambda in unused default argument"
   href="http://llvm.org/bugs/show_bug.cgi?id=12064">bug 12064</a>
              from <span class="vcard"><a class="email" href="mailto:popizdeh@gmail.com" title="Nikola Smiljanić <popizdeh@gmail.com>"> <span class="fn">Nikola Smiljanić</span></a>
</span></b>
        <pre>r208386 gives:
test.cpp:1:30: error: void function 'f' should not return a value
[-Wreturn-type]
template<typename T> T f() { return "Cause Error"; }
                             ^      ~~~~~~~~~~~~~
test.cpp:2:32: note: in instantiation of function template specialization
'f<void>' requested here
void g(void (*)() = []{ return f<void>(); });
                               ^</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>