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

    <tr>
        <th>Summary</th>
        <td>
            A false positive `-Wmissing-field-initializers` for anonymous unions
        </td>
    </tr>

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

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

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

<pre>
    https://reviews.llvm.org/D157879 introduced a false positive for anonymous union members:

```
struct A {
    int m;
    union { int n = 0; };
};

A a = A{.m = 0};
```

now produces a false positive warning saying that the anonymous union member in A is uninitialized.

Thanks @zygoloid for reporting this.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0Ut3OmzAMfRpzYxWFQJvmggu6iieYtOvQuOAtJFUSvk_t00-l3fe3TUI2HBufHOeYlHj0RC1sDyBlf_NmvvngQUrYHguz5CnE9g0uhmCv7ZTzJUHdgexB9pFemF5T6dzLXIY4guyP1VbtlUb2OQa7nMiiwbNxifASEmd-ITyHiMYHf53DknDxHDzONA8U19HiCOJP3Inns36mHJdTxg5BHR4IIt6pcIb6A_IYCeqw1jxCfUQB9QFBHd8aP72vsUOztnagDuX8_Otj1-fTPKIPr3h5SE1_S3010bMfMZnrPeXJZMwT_Uc-sscOeQU9ZzaOb2TLj3TfJ-N_JYRG3K5jcIHtus5IlxDzg4JTWdi2trrWpqC22ul9I5RudDG1tSA5DEJbW5MVVBlj1HZPRppK76thV3ArhawrIVVVbbXQZT3URomz1lVDcm8VNIJmw-7t0gtOaaFWiaZpCmcGculpqZMzfoS6O8fgM3l7d5b8di8Ef-Y4k316Lbb3YZthGRM0wnHK754qMmdHbfd1s7ATmx8zp8R-3JyZnN287ywm2Il_-SwVS3RfXDxynpahPIUZZH-nfabNJYafdMog-1ViAtmvKn8HAAD__6JuAZg">