<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:heiko.lewin@worldiety.de" title="Heiko Lewin <heiko.lewin@worldiety.de>"> <span class="fn">Heiko Lewin</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - statically recognizable type-errors result in broken binaries (?)"
   href="https://bugs.llvm.org/show_bug.cgi?id=49375">bug 49375</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;">Resolution</td>
           <td>INVALID
           </td>
           <td>---
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - statically recognizable type-errors result in broken binaries (?)"
   href="https://bugs.llvm.org/show_bug.cgi?id=49375#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - statically recognizable type-errors result in broken binaries (?)"
   href="https://bugs.llvm.org/show_bug.cgi?id=49375">bug 49375</a>
              from <span class="vcard"><a class="email" href="mailto:heiko.lewin@worldiety.de" title="Heiko Lewin <heiko.lewin@worldiety.de>"> <span class="fn">Heiko Lewin</span></a>
</span></b>
        <pre>Sorry, again. This worked with numbers.
This case prints "floatint" even with my local clang.
I am not proficient enough to be 100% sure if the "const auto&" is allowed to
bind to the "int&& or float&&" but the result is kinda ridiculous.

```
#include <tuple>


struct Test {
   int m_x;
   float m_y;

   template<class Callable>
   void withMembers(Callable&& callable) {
     callable(m_x, m_y);
   }
};


#include <stdio.h>
extern void print(int&&i) {
        printf("int");
}

extern void print(float&&i)  {
        printf("float");
}



int main()
{
    Test t{ .m_x=1, .m_y=2.0f};
    auto f = [](const int& arg) {
        print(arg);
    };


    t.withMembers([](const auto&... args){
        (  print(args), ...);
    });
    return t.m_x;
}
```</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>