<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJylU02PmzAQ_TXmYi0idgjhwGFDslVbrVSplao9rQwewK2xI9s0TX59xyTZTbe9VEUDzOfz84zdWHmsPgPQIYS9J_yesAeU3srG6pBa16N1wrd7bJ4eH58-nlL6ZVCeHoSnTigPkorwtrpt095Ml-pm6k9Ka4GqH-zhGe207RXhD0oSvi3LvFgQxluWkmxLsnuyys5SE7aJMnt9cFMb6HtSXByUTkZZQ9FBlQlUxEixJXxDz79rWgwSdq9uXK01PsDPvUM8tiasROpq1lYiWmekM5sbrJsy-goXYNxrEYDw-j3huwvR-oXOBSffoIzi2MDzZCbsG8m3KDWWIdaufc287v_vJq-9nVyLy-2Q9RJfluEHB-KMMn1UOwVa4p4LFIqzwkYZFZTQ6oTjOgxgaCRAB3BAkdXd198yIrF_bxT98yH57hxbXNnRHgw4bJZ8O-yziasUkuKCgC30doQwxCqtviNRTMIt8VqYo7GjnfDA7VIRfasMp4xEhaS2uybOfsJqKoyMPjGnedqCC0IZfaQ3e04TWXFZ8lIkYgqDddUHO4DevfuUTE5Xb863CsPUpK0d0dD6x_V3t3f2GzJHU3k_gUcl56xcJUPVyE6u1mW-zNq1WDRrDpKXObTdugAoOCRaNKB9Fc8JYwYOdIZAHceR_D8DVbGMsWyxKBccv0XKy7aUXdflslyuOr4mywxGoXQaceLVTVw1Q-J99RjUygf_GhTeq94AzISRYVBBQ7Wx_eRfhn05aVENA1AhpQPv44iEseYYR0ilCIKOMDbgkplyNfP9BczlXFM>53296</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Bogus warning when using the address of anonymous data member
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
JohelEGP
</td>
</tr>
</table>
<pre>
See https://godbolt.org/z/fMbYMMYKz. This was raised at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99571#c2.
```C++
struct I{
union { int a{}; };
int *i;
constexpr I():i(&a){}
};
constexpr I i;
template<I>struct C{};
[[maybe_unused]]C<i>c;
```
```
<source>:4:20: warning: field '' is uninitialized when used here [-Wuninitialized]
constexpr I():i(&a){}
^
1 warning generated.
```
I'd expect something like `'<anynomous>.a'` instead of `''`, and `a` is certainly initialized.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVU0uPmzAQ_jXmYi0CG5Jw4LB5bLWtVqrUStWeVgYP4NbYkW2aJr--Y5LsptteigaY93wzYzdWHusvAHQIYe8JvyfsAam3srE6pNb1KJ3w7Z6a56en50-nlH4dlKcH4akTyoOkIryPbtu0N9Mlupn6k9JaIOsHe3hBOW17RfiDkoRvq6pc5oTxlqUk25LsniyyM20IW0eatT64qQ30kSwvCkono6yhqKDKBCqiZbklfE3Pv6tbNBJ2r25UrTU-wK-9w3xsRViF0NXMLUSUzpnOaG5y3YTRt3QBxr0WAQjfPBK-uwDdvMK55CnXSKM4NvAymQnnRsot0gbDMNeuffO89v9vkW-8nVyL5XaIusCXZfjBhTijTB_ZToGW2PMSieKucFBGBSW0OuG6DgMYGgHQARxQRHX37Q-PCOz_B0X_fki5O9vyKzragwGHw5Lvl30WscpSUiwIOEJvRwhDjNLqBwJFJ2yJb4Q5GjvaCQ_cLhVRt8hwywhUSGq7q-OsJ2xDhZFRJ2Y3T1twQSijj_Sm5zSRNZcVr0QSVNBQr20_-VfYl5lFNgxAhZQOvI_FhLHmGMFQKYKgI4wNuGRyun53J1QYpiZt7YiC1j-vv7u9s9-xWxSV9xN4ZErOqkUy1G2-aldVlfGilE3JVl1WFoWUBeN5ka-yJtGiAe3reLYYM3CgcwrkcYWJqlnGWJbnVc7xu0x51Vay67pSVsWi4ytSZDAKpdOII17WxNUzJLyhHo1a-eDfjMJ71RuAuRzmF1MYrKs_2gH07sPnZK5dz9h_A77-RW8">