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

    <tr>
        <th>Summary</th>
        <td>
            Clang crashes with `--std=c++23` with short code snippet
        </td>
    </tr>

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

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

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

<pre>
    The following godbolt code produces a clang frontend command failure with assertions on: https://godbolt.org/z/dxbs8M6zj

Code:
```
template <typename T>
void foo(T t, const int (&reps)[]) {}

int main() {
    int a;
    foo(a, {2, 2 * 2});
}
```

Also, this does not compile in c++17 mode, but c++20/23 mode is successful, whereas gcc and msvc both compile this in c++17 mode.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxkUsuSmzAQ_JrhMmUXHh42Bw5-hFtu-wNCGow2QqIYsZvdr08B3keSKkoqenq6pVErEXv3zDUUFyhuiZpjH6ZaO9t17TwZq38lbTBv9VPP2AXnwqv1d7wH0wYXUQfDOE7BzJoFFWqn_B27KfjI3qAOw6C8wU5ZN0-Mrzb2qER4ijZ4weAhO2Mf4yiQnYEaoOYhvQ_THah5B2rM71ZOP8v3Z0hvkJ639RoMLz0bVKaPb_2NPIxORUbIrvFtZK8GxifIfmzll2ANdiEAnZ4wAl1RBy8RrY8IdAIqJx4FqNpmAlQhHC9wvH33X8iDsn5t2AgrjoirkILsG7K5qcULjhdadkKgM9IiS9Un-cvl7ytt69lJWHpjbwVNYEEflkcYRusYrUcNdAG6HI44LPOhK7Zz_EApBWooW0toBWXWmkW62S3E154nVoJ3rXF5s0FeNLYh9p_6q-t_JvvE1JmpskolXB-Oh-JIBVGa9LXhwykznaau7EpFJXeqLSlT3LYHLgqd2JpSytPikBNRSun-WFR50eY55aU6VVkKecqDsm7v3MuwJCKxIjPXFR1OVeJUy07W5BKtyQOiJcRTvfB37XwXyFNnJcqXQrTRcX1dg6onJT3Llkso091OooHs9jGwDMp0K0ofpkfcxdtx5JjMk6v_ia6N_dzudRiAmsXwse3GKTyzjkDNen4BatYr_AkAAP__4KANhA">