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

    <tr>
        <th>Summary</th>
        <td>
            "initializer-string for char array is too long" is a poor diagnostic
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang:frontend,
            clang:diagnostics
      </td>
    </tr>

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

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

<pre>
    See https://godbolt.org/z/8na7nozro

```c++
constexpr char foo[3] = "abc";
```

What's the expected length? Why is the length wrong? The diagnostic here is pretty bad.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxdUttu4yAQ_Rr8ghrZQ33JAw_JRv2BrtTnsRkbKgoW4O0mX7_gdJWq0oA9c0Yz5xwxenWVr0Rcp7RGJk4MXnIsXo3epoMPS85u-QwOe-dvwbP6wurT193V95gYnEvs1cm7mOjvGvikMfDZe9aeBWsvnIl8AHDM_cDE-ceU76PfNCYGfeRJE8_DaEqkuCW3JM3EC3_TV27u6L3IP4N3S4F-55oyuDgfk5m4pkCldQ2U0pWPqA4Vyabr-q6FfhgqJYU6iiNWySRLMlMzziSD1twoPMUUjFuyii85GALeV3vPbVkJUFLkq889j8XVFqz8YatJehsPk__IibV__n-e1uDfs8Kcmhg3ivmnHQY4Vlqqdm47HHCYBpxmIQZopo4ECuigB4GVxZFslNnjzGSyWEw4zdmMRE4Vn-EX_4Y8CMYCtpfKSKgBmqZuG2hFPRzGpulpfq5bNQMhNOy5pg809lC4ljdRBbnTHrclZtCamOIDxBjN4oh2Snk-bkn7INOIpCiEapcod33_AOydx5c">