https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78958
Andre Vehreschild <vehre at gmx dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vehre at gmx dot de --- Comment #3 from Andre Vehreschild <vehre at gmx dot de> --- Created attachment 40620 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40620&action=edit Preliminary patch The attached patch fixes the issue at least on x86_64-linux and the sanitizer does not report any further issues. Please test.