https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109299
Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xry111 at gcc dot gnu.org --- Comment #1 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- You are reducing it wrong. The reduced example should indeed trigger the warning, as it's copying 5 wchar's into a buffer with length 4.