<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/57730>57730</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
-Wuninitialized does not fire for simple trivial types
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang,
clang:diagnostics
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
yuanfang-chen
</td>
</tr>
</table>
<pre>
https://godbolt.org/z/dEh8noxb6
```
struct A{
int a;
float b;
double c;
int x[10];
};
bool f() {
A a;
return a.a > 10;
}
```
GCC works as expected.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtUtty2yAQ_Rr0wlgD6P7Ag2In_YQ-c1lJtBg0gBI7X1-spKmdKbMsnF1YzgGk11e-pLRGVI2IvWSbvZbeptKHOaP33PXz0jt_kS0iJ0TGT9-ST9thTGFTCY-oe_oI4NyMS1ig6i4yWS8Slg8x7TdpAauH4G3rBTVPlKDm9JVB3d1899J7iyfEesQG_HD4-O3oAGkLDotSYFQ941z4vur_NH34H8cjfvPhd8QiYrisoBLosgBO27aitG6aptC80kM1iCKZZIEffm7OOJOMsOYddFYIETuf8GQC4MkHHM15zZpTMK95EU7XFWKxBfv9LUxaNlkqf87A2te_w2EN_lcmkqGJcYOYJ03XVaRYOJNU1i3UrYZmEIR1VUNAsX6a-q5WZCqskGAjz5eLGFNWuPzODLEj_oLVqI2YnY_JqHhLNqfCcEYYIwOtCaFZc6kEKEp1PUw1FUz2qCZwFsaWN4K331MEvnOV2xxz0pqY4r-kiNHMDmDnkeuLLS0-8Osm3JQ5HNQCrtjF8V3ZH2H5xaQ">