<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/126490>126490</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
false positive of [[clang::require_field_initialization]]
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang:frontend
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
hokein
</td>
</tr>
</table>
<pre>
https://godbolt.org/z/eaG1e7ojY
```
struct Foo {
int x;
int y [[clang::require_explicit_initialization]];
};
struct Bar {
Bar(Foo foo) : foo_(foo) {} // Field in 'Foo' requires explicit initialization but is not explicitly initialized
Foo foo_;
};
```
This is caused by the https://github.com/llvm/llvm-project/commit/20fd7df0b847bb46aac2f0b5b71d242220027cbc
cc @higher-performance
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyEk9-OmzwQxZ9muLE2MsMfwwUXRCu-F_huehXZZgizdXBqm9Vmn74im-y2UatKIzGg0Zxz8M86Rj4uRB1Ue6ieM72m2Ydu9t-Jl8z48dLNKZ0jFD3gADgc_Wi8SzsfjoDDO-BA-r-clH_5BrLfqpa3kn1MYbVJDN4LUHuQvRC8JPEGxdfLRVyl99bp5bjJFH2gHysHOtDb2bHldOCFE2vH7zqxX6B63uq6A9S9-VTb6_CpttcBsNn0J-8BWwFFv7UHwOb-Re1BPYuPdGJgcqPgRQCqYRtQ4uYmirsd8bsdYdYkOIrFp88Rd_kaovHDnhA3H4dH67_8MZD9_zPHbZ_Va6RRmItIM4mHU-A0r2Zn_QlwcO71_ng6B_9CNgEO1p9OvDUop1GNkzRNqYwpa60tTtJURuUjlogoJSpr7Ie6tQJKOfNxpvB0pjD5cNKLpWzsirEtWp1Rl6uizVWrVJPNXZPbcirLUlZtPZGtrKnrampQY13VusKMO5RYScylbLEtml0tW4u6xirXpcxlBaWkk2a32xJsYGUc40pdjnXZysxpQy5eAUW8UzIFvyRaRkDcsA3dNb1ZjxFK6Tim-LUtcXLUTdpFEmcfOfErCT_9nbtpg-CP0GVrcI8X4t9HcY0TAYdbotcOfwYAAP__droStw">