This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19373] Including STL headers in a namespace doesn't compile
- From: "bkoz at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jan 2005 22:49:04 -0000
- Subject: [Bug c++/19373] Including STL headers in a namespace doesn't compile
- References: <20050111141854.19373.JurgenvonOerthel@hotmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bkoz at gcc dot gnu dot org 2005-01-11 22:49 -------
Gaby, your comment is funny! Made me laugh, since I just got out of my cast.
Just for reference, this is invalid because it would invalidate
17.4.1.1 - Library contents
requires std or std:: namespaces for library components
17.4.3.1.4 - Types [lib.extern.types]
ie std::size_t and ::size_t could no longer be equivalent.
It would also change standard-defined external linkage
17.4.3.1.3 - External linkage
-benjamin
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19373