This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13220] Cannot overload local operator new and include <iostream>
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Nov 2003 20:38:54 -0000
- Subject: [Bug c++/13220] Cannot overload local operator new and include <iostream>
- References: <20031128182953.13220.tom@storagematrix.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gdr at integrable-solutions dot net 2003-11-28 20:38 -------
Subject: Re: New: Cannot overload local operator new and include <iostream>
"tom at storagematrix dot com" <gcc-bugzilla@gcc.gnu.org> writes:
| A conflict exists between a module local overload of operator new
| and the definition of operator new that gets dragged in by
| <iostream>. The following code fails to compile.
And that is to be expected. Put differently, your program makes
unspoken assumptions.
More specifically, the C++ standard allows any standard header
(not inherited from C) to include any other standard header.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13220