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

    <tr>
        <th>Summary</th>
        <td>
            Prvalue of parenthesized aggregate CTAD fails
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    See <https://compiler-explorer.com/z/xjxWbKTs7>.
```C++
template<class T> struct X { T x; };
auto x = X(0);
```
```output
<source>:2:10: error: no viable constructor or deduction guide for deduction of template arguments of 'X'
    2 | auto x = X(0);
      | ^
<source>:1:26: note: candidate template ignored: could not match 'X<T>' against 'int'
    1 | template<class T> struct X { T x; };
      | ^
<source>:1:26: note: candidate function template not viable: requires 0 arguments, but 1 was provided
1 error generated.
Compiler returned: 1
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykk81u4zgMx5-GvhANZCmO44MPiZMssHspsAG2V9liHBWK5dVHmunTD2RnUrQYzGHGEGCbosQf_ySl97ofiGootlDsMhnD2br6b3sms__rOWut-lb_S4QgmnMIowexAX4AfujsZdSG3BPdRmMduUVnL8AP78APt9fbf-0_R1-C2C-A7YBtYMXm1QDfpjVZA11GIwOBaDojvccjiD364GIX8AWh3OIRbyC2COUOxP2UjMHiDUHs8AX4mgGvHnuPOF9-bQxjDHejaLyNriMQexAbDmKTMxAbJOesSx-DxauWrSHs7DDjWIfWoSIVu6DtgH3UivD0yWZP-CMjlK6PFxqCT1bg5Qvwcg6PiMgRygZ_lQhOT_KCYv9T7jyxr2bcJOEGOzkorVL0B4buB-tITbs2GpV88SJDd56hRJMkB16i7KUefEhmPYRPtPnE8XvF-rM8TnGYpX0klPjn2iRPR_9H7cgj-xAceINtDJjjm_Q4OnvVitQcOp9rjD0N5GQgdW_P5t7N6ChEN8yC5V96KFO1UJWoZEZ1vqpYVbFqLbJzLfOiqMRSMqoKKogxluecsRMvZCvUus10zRkXbM14XiwFEwshK7kqxIpxoYSqVrBkdJHaLIy5XhbW9Zn2PlK9WoplmRnZkvHTjHI-0BtOm8B5GllXpzNPbew9LJnRPviPW4IOhupnd5UmUurEUToawpm8fieFsu8d9UnW5rjZ4Ulq47PoTP151nsdzrG9D3i6-_56Gp19pS4AP0xEHvhhIv4eAAD__zY2S-M">