[Bug c++/13903] using namespace X does not work for operator new
manu at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Feb 9 00:23:00 GMT 2008
------- Comment #6 from manu at gcc dot gnu dot org 2008-02-09 00:23 -------
(In reply to comment #5)
> Could you please tell me which standard does not allow it, and if a previous
> standard does allow it.
The only thing I can tell you is that in our codebase the code is commented as:
/* [basic.std.dynamic.allocation]/1:
A program is ill-formed if an allocation function is declared
in a namespace scope other than global scope or declared static
in global scope.
The same also holds true for deallocation functions. */
where the first line is a reference to the ISO C++ standard.
Anyway, this is not the appropriate place to get help with C++.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13903
More information about the Gcc-bugs
mailing list