https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66573
--- Comment #12 from Jason <gcc-bugs at hussar dot me.uk> --- This significant change appears to have been resolved in g++ v8.1.0. So now g++ does the same as the massive corpus of computer science and other compilers.