https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85705
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I doubt this is supported. The main reason is constructors is not happening the way you think they should be happening. That is the constructor needed for cout is not happening.