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

    <tr>
        <th>Summary</th>
        <td>
            [Regression] Clang accepts a syntactically invalid use of uniform_int_distribution<>(1, );
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          GINN-Imp
      </td>
    </tr>
</table>

<pre>
    Clang-trunk accepts the following code without producing any syntax error.
https://godbolt.org/z/dnW5oWY84
```cpp
#include <bits/stdc++.h>
using namespace std;
int a() { 
 uniform_int_distribution<>(1, ); 
    return 0;
}
```
Expected (Clang 19):
```
<source>:4:35: error: expected expression
    4 | uniform_int_distribution<>(1, ); 
      | ^
1 error generated.
ASM generation compiler returned: 1
```

bisect to https://github.com/llvm/llvm-project/commit/925e1956cd5039fa2489b802d25555e247c34175
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJycU8GOpDYQ_ZriYk3LlO0BDhzonu1oD9lDcljltDJ2Ne3E2Mg2szP5-gjYVqK5bSQkjEW9eq9ePZ2zmwJRD-oM6qXSa7nH1P_y-cuXp8_zUo3RvvcXr8P0VNIa_mLaGFpKZuVO7Ba9j99dmJiJlth3V-5xLWxJ0a5mu9bhneX3UPQbo5RiOgEf7qUsGcQAeAW8TtGO0ZdTTBPg9W_Aqw1fVfz6RyuBD_DMj8csy_aJwgXjV0sMxGV0JQNec7EG8Ax4Pt1BfAI-rHnrHfRMedGGWC4WxBn44EJhGrAF7Bg0ZwZ8YGtwt5jmby6Ub9blkty4FhcDiMuGhm0NeGGAHYijgDGWqKwpMH6gQvPyX6rAh09vC5lClgG2--xY3e0Iw4cfQVxyXJOhrZUYJIhBKBDDMa398ICityVRzhuzg4Rk0Fz-F322V4LaZlUfrdhEgZIuZDeLht9_fVy4GJiJ8-I8pR-6yW7E6o9S-DC6TKawEtkHj125r-PJxBnw6v3r4_W0pPgnmQJ4NXGe3XboUFHdqWdjFRfdTaNsu7HlaFEppQhlY4SsG1XZXthOdLqivm6k7FT9LLG694ITp-6mZKcFSmOatqslSWsFdrYzunI9clRc1i2XskE88Zbrm1LERU03rREkp1k7f9o4botZuZxX6mvxjEpWXo_k854XRLO5C4hbdFK_ixrXKYPk3uWS_4Uorvg9ZL_R9PBRvbBjOx6Z0kdYTHFGe__OXHjV3lm2ZmLx9lNeV2vy_U_bsAvdQvVD62uP_wQAAP__uyxDsw">