<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 - Concept subsumption broken with constrained + unconstrained parameter with terse syntax"
   href="https://bugs.llvm.org/show_bug.cgi?id=50337">50337</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Concept subsumption broken with constrained + unconstrained parameter with terse syntax
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

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

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

        <tr>
          <th>Reporter</th>
          <td>davidfromonline@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>blitzrakete@gmail.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The following valid translation unit:

```
template<typename T>
concept foo = true;

template<typename T>
concept foo2 = foo<T> and true;

void f(foo auto, auto) {
}
void f(foo2 auto, auto) {
}

void f() {
        f(1, 1);
}
```

is rejected with

```
<source>:13:2: fatal error: call to 'f' is ambiguous
        f(1, 1);
        ^
<source>:7:6: note: candidate function [with auto:1 = int, auto:2 = int]
void f(foo auto, auto) {
     ^
<source>:9:6: note: candidate function [with auto:1 = int, auto:2 = int]
void f(foo2 auto, auto) {
     ^
1 error generated.
Compiler returned: 1
```

This was broken in a recent commit (past couple of days). It's fine with
46c17429bc86dc5ccddb5512b77bd1ede39c9ccd but fails with
72797dedb720fae22682fc884cbf741c5a2066c2.

See it live: <a href="https://godbolt.org/z/EaGMs8dhT">https://godbolt.org/z/EaGMs8dhT</a></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>