https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54398
Richard Earnshaw <rearnsha at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |FIXED --- Comment #9 from Richard Earnshaw <rearnsha at gcc dot gnu.org> --- I don't know precisely when this was fixed, but the testcase produces correct output on (at least) gcc-7 and later. So presume fixed.