https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99805 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- I cannot reproduce this with upstream GCC. This looks like a bug in devtoolset-10, so I'll report it to Red Hat's bugzilla instead.