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

    <tr>
        <th>Summary</th>
        <td>
            False positive of uninitialized base in cppcoreguidelines-pro-type-member-init
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-tidy,
            false-positive
      </td>
    </tr>

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

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

<pre>
    ```cpp
struct S;  // forward declaration is needed

struct S
{
     int a;
};

struct C : S
{
    C() : S{0} {}
};
```

```
<source>:10:5: warning: constructor does not initialize these bases: S [cppcoreguidelines-pro-type-member-init]
   10 |     C() : S{0} {}
      | ^
      |           S(),
1 warning generated.
```

https://godbolt.org/z/7b8cTP7G7
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyMUk2P2yAU_DXPF-QIsImdgw9Osu610vYPYHh2qAhYgHe1--srnGy32R5aZMl8vBlm3iBjNLND7EAcQZwLuaaLD526TDKmYvT6rYM9vX1qWYD2MYVVJfIM1ZEQ4APwgUw-vMqgiUZlZZDJeEdMJA5Rowba_wmjPTRHoD3Jw7hEJFTHbfd8n_wuPhGo-i-QE_AW-OF-0hwpNGeSj5vzA8mH6Bvhw7I6Rb8GhVA9QdUzClUvMt2rDM64OU-VdzcNPhDtMRLnEzHOJCOteUeSLhiRjDJi3IQQEEe1LMoHnFej0RqHsVyCL9PbguUVryOGMhOAON-cMEqgOZF_e9pKtloQTw_rz_F8YwB-AtqzDydkRodBJtS7v1tySWnJ4m8Rzl6P3qadDzPw4R340Iyt-vG9-dYUuqv0oTrIAjvWiD1not1XxaVTuGe8Ei3lo2wZw7o91I1UVDUtY5pNhek45YK2fM-quubVTrZibGk9NS3ScWpHqClepbE7a1-u-e7CxLhix4So2b6wckQbt6fJubLSzWUy-g04z0Y5n6SNWC4-mmReMG-LcxG6TFaO6xyhptbEFD_pk0kWuyHjyAeO-Ims7jNcveVKjCP_l2ixBtt96aZJl3XcKX8FPuTL77-M_4kqAR82oxH4cPf60vFfAQAA__9Tswpa">