https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87252
--- Comment #8 from Abrahm Scully <abrahm.scully at gmail dot com> --- I don't think anything is wrong with gcc-10-20200329. The code looks fine. I realized later that the versions of gcc I mentioned where I don't see this problem are all from release branches. As described in https://gcc.gnu.org/install/configure.html, the --enable-checking default behavior is different in release branches. They just don't run the test during the build. Configuring the gcc-10-20200329 snapshot with --enable-checking=release skips the test and the build finishes fine. Sorry for the noise, but thanks for listening.