<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:efriedma@quicinc.com" title="Eli Friedman <efriedma@quicinc.com>"> <span class="fn">Eli Friedman</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Inline jump tables"
   href="https://bugs.llvm.org/show_bug.cgi?id=40851">bug 40851</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>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>efriedma@quicinc.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>INVALID
           </td>
           <td>---
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Inline jump tables"
   href="https://bugs.llvm.org/show_bug.cgi?id=40851#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Inline jump tables"
   href="https://bugs.llvm.org/show_bug.cgi?id=40851">bug 40851</a>
              from <span class="vcard"><a class="email" href="mailto:efriedma@quicinc.com" title="Eli Friedman <efriedma@quicinc.com>"> <span class="fn">Eli Friedman</span></a>
</span></b>
        <pre>You mean something like the following?

int square(int x) { return x*x; }
int add(int x) { return x + x; }
typedef int (*p)(int);
static const p arr[4] = {square, add};
int test(int x) {
    int res = arr[x](1);
    return res;
}

That isn't a pattern I've seen before, but I guess we could try to handle it.</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>