https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113074
--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #5) > Created attachment 56905 [details] > testcase which shows libc++ and libstdc++ difference > > with libstdc++, both GCC and clang reject this. > with libc++, clang accepts this (I only tested clang because it was the > easiest to test there). AFAICT only libc++ from llvm trunk accepts this, even 17.0.1 gives an error outside the immediate context, like libstdc++ does.