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

    <tr>
        <th>Summary</th>
        <td>
            "in call to" diagnostics display floating point values the user has never written
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            enhancement,
            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://buildkite.com/llvm-project/github-pull-requests/builds/3419

For:

```c++
consteval float div(float f) {
    return 10 / f;
}

static_assert(div(0) == 5);
```

The output is:
```console
<source>:6:15: error: static assertion expression is not an integral constant expression
    6 | static_assert(div(0) == 5);
      | ^~~~~~~~~~~
<source>:3:15: note: division by zero
    3 |     return 10 / f;
      |               ^
<source>:6:15: note: in call to 'div(0.000000e+00)'
    6 | static_assert(div(0) == 5);
      | ^~~~~~
```

The "in call to 'div(0.000000e+00)'" part of the diagnostic looks weird and wrong; I've never typed that.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVE1v6zYQ_DWryyKGRJpSdNDBjmOg5_ZeUOJaYh9NquTKqXvoby8kObGDVzQt8BaEQPBjdmZEjE7J9p6oAbUHdcj0xEOIDbeaDMWYtcFcm5-JQO5wYB4TyB2II4hjO1lnvlmmTRfOII7OXc5PYwy_Uccgjr3lYWqfxsm5p0i_T5Q4vd-aJ3Jb1JAfIN-t32OIM_TDCpT5OjoQ-3ksq13wiemiHZ5c0IzGXkA8r_MTiBqhup1ERIzEU_RY5AjiiCeQtz2oDo-tEmu23a86JYoM4nkFzRc4eQB5QAWivt9-Z_aI8ctAGCYeJ0ab7lI-RASfgqPbqnxJYYodgXwFuStB7go1W0wxLj7gyghXRjZ4pD_GSCnNU5vQB0bt0XqmPmqHiyva88OxuwklQvWC_1MjLjVfBPX610f9I3_5wd8HXp6KsRe7cG2v-CfFcMeUC-a__Zt7588F6vUL9967W4-ddg45IIjqJnSTL0Ug9vmsGkT1wy364nmAEP-ZmhA46sgYTsgDobG69yHNb8KF8C3hG9loUHuDbzH4HuQefwJRXQg9XSgiX0cyyIPmzUogM400tax1Rk1R1kpWYlupbGi6olC6Voaqti2eu0qZquikLMvSnPSpVJltRC5kXguRP28rpTZFJ-qtardGl3lhVA3bnM7aus2cAZsQ-8ymNFFTVnldZ0635NISMEKQH7Tv6EyeQQgQLyBE5_QsYHeKwTN5893GXXya99Qhi80SN-3UJ9jmziZO9-Zs2VHzyezZzgcUNDaNTl_XDLG-xzFYz3jRbqK0GD4lijjodLPzLVpm8tkUXfM5B9egewjB77NwcWMOvcWQvwMAAP__F_6XNA">