<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/61256>61256</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
"lifetime extension of temporary created by aggregate initialization" diagnostic is weirdly apologetic
</td>
</tr>
<tr>
<th>Labels</th>
<td>
good first issue,
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/xKW4EP7zP
The full text of this diagnostic is:
"sorry, lifetime extension of temporary created by aggregate initialization using default member initializer is not supported; lifetime of temporary will end at the end of the full-expression [-Wdangling]"
Why the "sorry"? This sounds weird and is not in line with other diagnostics.
I think this can be improved by simply rewording the diagnostic.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysk8GPqzYQxv8acxklIuOQhAOH7EuRql6e1JX2bPAA0xob2cMm2b--grRKtud3AUvMfDPfj88mJe49UaWKN1VcMjPLEGIljSFLMWZNsPdK5ReVn_8kUvoMg8iUlD4rrBXWfbBNcLINsVdYfymsb3987H_7efz6-eh6PN8Hgm52DoRuAqEDGTiBZdP7kIRb4FXypUMhphDjXeEPcNyR8EhANyGfOPhVgsYpRBPv0EYyQhaaO5i-j9QbIWDPwsbxl5GlYU7se7DUmdkJjDQ2FJ81yzmBDwJpnqYQhazSb8_B38Zd2Tkgb8EIyEDrcbX08Lih2xQprWuq4m3zYY3vHfteFReF-GryY7ivbU-zqHQN7wucFGZvE1yJowXj7X8LsgfHnuDKMkCQgeILx7R9lf99wez_fsBujYeGgMcphs8HrMTj5O4Q6RqiXfAsuzzFtpmttC11aTKqdofjCQtd6GM2VNgec61zfeqK3bHI80Nh9-Wp7GyZU1N2bcYV5qhznZ_yQuPuuC125RH35b5ru9K2tFP7nEbDbuvc57ikJ-OUZqoOOywOmTMNubRmErEPwULHMQmsNQsk_KEQW2d8r_T5xf7yrbhksVpkN83cJ7XPHSdJz0HC4qhSiL8gVgrxe4of_8vdwUzBhZ6E22yOrvrfrWEZ5mbbhlFhvSz272szxfAXtaKwXq0mhfVK5J8AAAD___3AObw">