<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - reference binding and conversion operators to reference types"
   href="https://bugs.llvm.org/show_bug.cgi?id=35332">35332</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>reference binding and conversion operators to reference types
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kaballo86@hotmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The following snippet compiles successfully, rather than resulting in calls to
deleted functions:

    struct convf {
      float f = 0;
      operator float&() { return f; }
      operator float const&() const { return f; }
    };

    template <typename T>
    void lvbind(T&) {}
    template <typename T>
    void lvbind(T&&) = delete;

    int main() {
      convf f;
      convf const fc;

      // lvbind<int>(f); // error: no match
      // lvbind<int>(fc); // error: no match
      lvbind<int const>(f);
      lvbind<int const>(fc);
    }

This is related to the resolution of LWG2993.</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>