This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18267] external linkage of functions declared in an anonymous namespace
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Nov 2004 00:19:57 -0000
- Subject: [Bug c++/18267] external linkage of functions declared in an anonymous namespace
- References: <20041101183010.18267.TazForEver@dlfp.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2004-11-02 00:19 -------
GCC is not allowed to remove the definition of a function with external
linkage. The fact that nobody will be able to call it because it is in an
anonymous namespace it is irrelevant.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18267