<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJylU01v2zAM_TXyhZhhy3YcH3zIkjbAhgEFtkOusiXHGmQp0Efa7dePUpq0GYbtMICCTFIk3yPpwfAf_VchYPb-5Ei1IfQR5Wj4YJTPjT2i9hPP5wf7ZJr9t47QLTzPcpxhv90CG0dx8jHwnxkML8tu_9KuclLsSLEhq-IiW0I_RklW8XIy1sNieFAiXqS69zhvw-jhAKR9dcDVxsXEgvIuuvDsbqEAZyM5TISupfaRwfUpod3t1fuI9P4Q2VSbP4QBqXYJAIbQ7lbvntffaMrlSvNWEkvAwqTGaq85r-APl0p5BFJcEMOlyyCsNTZ23xsDk3gGZo9hERohejQEPXppNIxMqYgfeyhGLzjQqM3sLKB8I3-PN-N9xbuqYxkLfja2_2RmoR72T1mwqv9t2tLPYchHs6Ci1Pl6fThZ8x0roiqdCwL7_dhUbUezuR-ashj4itYFW48l47zuhqplrGlL1k4dzxQbhHI9abBtVCO3lAK_SbPL_h-B7GlBUUparpuGVvm6FXQaVuu6pGPNy5rUhcCBqDzmiYuc2T6lHMLRoVNJ592bkzknj1qIBBgReulVUr6kXXZog91lf-DELFuEFxakjksltUxz0sbHX8oEHYc0GZsl0H1C_AtaPRcj>53792</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [Modules] Default parameter in definition not accounted for
        </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://godbolt.org/z/KErPo5GT9, which GCC accepts: https://godbolt.org/z/od119Gx76.
```C++
export module mod;
export struct X {
  struct defaults { };
  void f(int, defaults);
};
void X::f(int, defaults = {}) { }
```
```C++
import mod;
int main() {
  X{}.f(0); // error: too few arguments to function call, expected 2, have 1
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyFUk1v2zAM_TXyhZhhS3YSH3xI4zbAhgEFtkOussXEGmTJ0Efa7ddPcpq0GYYNoCBRFPken9gb8bP9hgij97MjbEvoU7STEb1RPjf2FL1fcX15tM-m3n9vCN3ByyiHEfa7HfBhwNmnxP9WMKIsm_3repWToiPFlqyKi-0IfUi23OLrbKyHyYigMG2E3Uect2HwcACyfgvA9U7gkQflXQrF1d1SAc5GCjgSupHapw6uTwltbq8-ZizvD6kbtv1LGhDWLQRiCm1uePd9_atNOV3bvEFGCJi41BHtreaV_OGClCcixYUxXFQGtNbYpL43Bo74AtyewoQ6UvTxIujBS6Nh4Eol_lFDHDwKoMkb-RmhfG_-nm8mWiYa1vDMS6-wJfXD1-VXHKk76C5KwMwtn9CjBamTPFLLBVEbn4bDBJ3gjsZmwar2jxmRfgx9PpgpOkqdr9un2ZofkWd0pXMhAtKnmq0bmo3tUAnBayzKFadFzzhbsWLDRIV9z0tWNZniPSqX2BJKdVRkKRHPkXUmW1rQaCUtN3VNWb5ZIz32q01V0li5rEhVYPwElSceaXgz2y6U-nByMaik8-49yJ2TJ42LOKk-D340tv1sRlSP--dswW4X7r8B-GsBaw">