<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:hstong@ca.ibm.com" title="hstong@ca.ibm.com">hstong@ca.ibm.com</a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Trailing return type accepted, even though it should be rejected"
   href="https://llvm.org/bugs/show_bug.cgi?id=30551">bug 30551</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>hstong@ca.ibm.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>INVALID
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Trailing return type accepted, even though it should be rejected"
   href="https://llvm.org/bugs/show_bug.cgi?id=30551#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Trailing return type accepted, even though it should be rejected"
   href="https://llvm.org/bugs/show_bug.cgi?id=30551">bug 30551</a>
              from <span class="vcard"><a class="email" href="mailto:hstong@ca.ibm.com" title="hstong@ca.ibm.com">hstong@ca.ibm.com</a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=30551#c0">comment #0</a>)
<span class="quote">> I suspect the function definition should be rejected for it is ill-formed, t
> cannot be used with std::integral_constant that way.</span >

C++14 subclause 14.6 [name.res] paragraph 8:
If no valid specialization can be generated for a template, and that template
is not instantiated, the template is ill-formed, no diagnostic required.</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>