This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]