<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/157082>157082</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Clang] Implementation of P2280R4 caused worse diagnostic messages
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang:diagnostics,
constexpr
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
frederick-vs-ja
</td>
</tr>
</table>
<pre>
https://github.com/llvm/llvm-project/blob/52dd4b9b7e4de5c098053db4fb0952249112c796/clang/test/SemaCXX/constant-expression-cxx11.cpp#L2015-L2016
> This looks strange. The old message looks better (see also [CWG453](https://cplusplus.github.io/CWG/issues/453.html)) and the new one is possibly misleading as we perhaps shouldn't say the address of a reference variable.
_Originally posted by @frederick-vs-ja in https://github.com/llvm/llvm-project/pull/95474#discussion_r1639300457_
This is still reproducible on the trunk. [Godbolt link](https://godbolt.org/z/ahjro4sMb).
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUU11r5DYU_TXyixgjX0tj68EP2UkdCi0t7cLuW5CsO7YSjWR05STTX188yXZp6cuCPkAH7tE951xD5OeIODD1ian7ymxlSXk4Z3SY_fR8eKHDk6lsctdhKWUl1t4xGBmMsy_LZuspXRiMIbx8uw5rTk84FQajDckyGBU4J622HUqHahK6F6p1Vp6t0ApA6qaBqdNHBuMUTJwZjAVpL_AnXszp69cdSJGKieWAb2tGIp_iYXp7a5p6WlcG7S8gGnXYzyMTd_tqf-KfF088pPRMnEo2ccaaf16Qp-D4BYnMjB-wxVIwcwY9IXITKHGmPp2-PEjVMnXPoP9389MaNtp3_SGDTwzG05cHBqMn2pAYjFK19VIugYFmoLmJjpcFecRXniJyT3xNRN6GK794CmicjzM3xF-Rr5gXsxKnJW3BRQZd4WSutwLGuV0Cns7c8IxnzBgn5C8me2MD1u8CPP6W_eyjCeG68xR03F45k-I_3nIf-Q87u24hMBi1kp1k0DpP03Yz5TE3x1a3QkjVPb5_5OaC3y3wIfCMa05um7wNyFO8NVTyFp_rXfGH5GwKhQcfn_9P9_kdr1PeU_IXg9EsTzlJ-tUy0HXlhtbpVpsKh6ZTnehA675ahhb18dy09thPrdHQq04IMPJ8FqK3zkLlBxCghBaqaaRWfS31uTHQnXXnGmmdYlLgxfhQ70rs_NXN56FRneihCsZioNsUAbynuL1z3swxUfETMQAGpx3bg7yHeH9R91UebtLabSYmRfBU6DtF8SXcRvN0q6ju-c-XNeAFYzHFp7hH4HeAXvwh-WQ2QsdfUybk35m_BZ2qLYcfH-F_wvzR58sAfwcAAP__yTJcCg">