[Bug c++/13220] Cannot overload local operator new and include <iostream>

gdr at integrable-solutions dot net gcc-bugzilla@gcc.gnu.org
Fri Nov 28 20:38:00 GMT 2003


------- 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



More information about the Gcc-bugs mailing list