You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
structS
{
S(bool b)
: b(b)
{}
bool b{false};
longlong : 7; // padding
};
voidf()
{
S s(true);
}
<source>:4:9: warning: 1 uninitialized field at the end of the constructor call [clang-analyzer-optin.cplusplus.UninitializedObject]
4 | : b(b)
| ^
<source>:7:15: note: uninitialized field 'this->'
7 | long long : 7; // padding
| ^
<source>:12:7: note: Calling constructor for 'S'
12 | S s(true);
| ^~~~~~~
<source>:4:9: note: 1 uninitialized field at the end of the constructor call
4 | : b(b)
| ^