This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50594] Option -fwhole-program discards replaced new operator for std::string
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 04 Oct 2011 09:26:57 +0000
- Subject: [Bug c++/50594] Option -fwhole-program discards replaced new operator for std::string
- Auto-submitted: auto-generated
- References: <bug-50594-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50594
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-10-04
Ever Confirmed|0 |1
--- Comment #14 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-04 09:26:57 UTC ---
I think that if the user may override certain builtin functions the frontend
should be responsible to inherit the proper visibility of those replacements
so it works even with -fwhole-program (or -flto).
Confirmed as a C++ frontend issue. To the middle-end those functions are
not in any way special.