<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:richard-llvm@metafoo.co.uk" title="Richard Smith <richard-llvm@metafoo.co.uk>"> <span class="fn">Richard Smith</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - declaring a function with a computed typedef is confused as a data member by definition"
   href="https://bugs.llvm.org/show_bug.cgi?id=42354">bug 42354</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;">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 - declaring a function with a computed typedef is confused as a data member by definition"
   href="https://bugs.llvm.org/show_bug.cgi?id=42354#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - declaring a function with a computed typedef is confused as a data member by definition"
   href="https://bugs.llvm.org/show_bug.cgi?id=42354">bug 42354</a>
              from <span class="vcard"><a class="email" href="mailto:richard-llvm@metafoo.co.uk" title="Richard Smith <richard-llvm@metafoo.co.uk>"> <span class="fn">Richard Smith</span></a>
</span></b>
        <pre>This program violates [temp.spec]/8:

"""
If a function declaration acquired its function type through a dependent type
(13.7.2.1) without using the syntactic form of a function declarator, the
program is ill-formed.
"""

The SHOW_ERROR case is ill-formed because it declares 'heck' with a dependent
type that is not non-dependently a function type. (Put another way, the
determination of whether a member-declaration declares a data member or a
member function is (permitted to be) made statically when processing the
template definition rather than when analyzing a particular instantiation, and
a declared member is only a member function if the non-dependent portion of the
type has a top-level function declarator.)

So I think this is not a bug.</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>