https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100375
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> --- I need to fix libstdc++ to accept the code with a deprecated warning, rather than reject it. I think it only rejects it with -pedantic but it should still be fixed to work until the deprecated constructor is removed.