https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96645
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- It doesn't compile the code in comment 1. That code doesn't use any standard library components, so it doesn't make any difference whether you use libc++ or not.