https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98108
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |INVALID
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I've reverted the change because it breaks the build for some targes.
So you'll just have to fix your code. The simplest way is to ensure you include
<iostream> before defining a global that wants to use std::cout.