[Bug c++/50594] Option -fwhole-program discards replaced new operator for std::string
z0sh at sogetthis dot com
gcc-bugzilla@gcc.gnu.org
Mon Oct 3 16:12:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50594
--- Comment #13 from Kerrek SB <z0sh at sogetthis dot com> 2011-10-03 16:12:28 UTC ---
Very interesting. I understand that making the function static makes the
program ill-formed, but it's still somewhat surprising that a compiler flag
should turn a perfectly valid program into an invalid one.
Perhaps adding those visibility specifiers to the <new> header would be a good
idea, since it'd be a pure-library solution.
Thanks in any case for clarifying this!
More information about the Gcc-bugs
mailing list