<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:dblaikie@gmail.com" title="David Blaikie <dblaikie@gmail.com>"> <span class="fn">David Blaikie</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - unused member variable causes code to compile for member to function for undefined function"
   href="https://bugs.llvm.org/show_bug.cgi?id=44175">bug 44175</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>INVALID
           </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 INVALID - unused member variable causes code to compile for member to function for undefined function"
   href="https://bugs.llvm.org/show_bug.cgi?id=44175#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - unused member variable causes code to compile for member to function for undefined function"
   href="https://bugs.llvm.org/show_bug.cgi?id=44175">bug 44175</a>
              from <span class="vcard"><a class="email" href="mailto:dblaikie@gmail.com" title="David Blaikie <dblaikie@gmail.com>"> <span class="fn">David Blaikie</span></a>
</span></b>
        <pre>Yeah, I'm going to resolve this as invalid - seems GCC and Clang both accept
the code, and it boils down to something like this:

struct Bad {  };

template <typename T>
struct is_Foo {
    void (T::*hello)(int) = &T::hello;
    constexpr static bool value=true;
};

int main() {
    return is_Foo<Bad>::value;
}

- instantiating the class and the static member 'value', doesn't instantiate
the non-static members.</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>