<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/81579>81579</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            ill-formed program with ambiguity of overload resolution accepted
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          Fedr
      </td>
    </tr>
</table>

<pre>
    This program
```
#include <vector>

struct A {};

void func(std::vector<int>) {}
void func(std::vector<A>);

int main() {
    func({ 4 });
}
```
is rejected by GCC and MSVC due to `call of overloaded 'func(<brace-enclosed initializer list>)' is ambiguous`, but Clang accepts the program, which seems incorrect since there is no IFNDR here. Online demo: https://godbolt.org/z/Prz4YcsW5

Explanation why the program is ill-formed: https://stackoverflow.com/a/77979372/7325599
GCC developers support it: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113884
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMU8nO6yYYfRq8-ZTIgTjYCy8S57rqooPaqlVXFYYvNi0GiyFp8vQVGe4f_e2ikuUBOAOHYxGCHi1iS6oDqY6FSHFyvu1R-WJw6tr-MukAi3ejFzMpj6Tck135vB6flGkrTVIIhHVnlNF5wr48J-_3EH2SEfZA-IHwI2GH99mz0wpOyUpC6xAVYXvC9i-eTtuY2WjzAv8PzP6B-KSjbYRZaEto_aK7jwPAi4rwA2whq7yjX6KfNq4DePwTZUQFwxW-6ToQVsF3P__agUoI0QHZlVIYA-4E7ozeOKFQAaH8pce6wQuJK7TSuIAKtNVRC6Nv6MHo8Nw7oRx0ADEPekwuheyBdjCkCJ0RdgQhJS4xQJzw62HRDi6TlhMExDmAttJ5jzJC0FZiXuoxs1oH3_bfH3-CPLCGH6zRFkHh7AjbwxTjEnK-tCe0H50anIlr50dC-xuh_Y_-tv1dht-q96i__L0YYUXUzsJlur7byoramNXJ-RnVvxVCFPKvHNbJuMtaupnQXhDac97whnGaXxmtqqZ5SOXYFZ7RuAV9gJCWxfkIOv6HeSnXo01P80Mab9qYzB0md_ljSONajpqwXivCjpsNq-ttoVqmGtaIAtsNL3m9YWVFi6mtJVXDZtdsuZSyEcOu4bU8cbGrFB3qoSp0S0u6LemGlXXGrBXnrBJIm4pLVnJOtiXOQpu1Mec5eyp0CAnbelPxpjBiQBNef6Vv86LVkMZAtmXuRfiARR0Nth-Zfk36ouP07IyO1_cSgsfgTLqfz6M6qIrkTfspMB2nNDwPIes9H6vFu1x8Qvu750Bof7f9TwAAAP__qExUVw">