https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67135
Toby Brull <tobias.bruell at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tobias.bruell at gmail dot com --- Comment #1 from Toby Brull <tobias.bruell at gmail dot com> --- This seems to be fixed from version 5.3 on. Was able to confirm the bug in gcc 5.2 via wandbox.org (although it failed there with a different ASAN error). Testing on wandbox.org, this worked for gcc version: 5.3, 6.1, 6.2, 6.3, 7.1, 7.3, 8.1, 8.3, 9.3, 10.1 Also worked on my local ubuntu gcc installs (6.5, 7.5, 8.4, 10.1). So should probably be closed?