https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116802
Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xry111 at gcc dot gnu.org --- Comment #6 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- (In reply to Tymi from comment #5) > (In reply to Andrew Pinski from comment #3) > > (In reply to Tymi from comment #2) > > > Oh, did not see that detail. It does compile with clang though. > > > > By clang you mean with libstd++ with clang or libc++? > > The default clang trunk implementation. Just double-tested as you sent this > message and turns out I made a typo while testing the clang version. This > issue is indeed invalid then. Sorry for trouble. "This issue is indeed invalid then" is misleading. Even if it compiles with Clang it's still invalid as comment 1 has already pointed out. A difference between GCC and Clang is not considered a bug just because it's a difference.