This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31187] [4.2/4.3 regression] extern declaration of variable in anonymous namespace prevents use of its address as template argument
- From: "mark at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Mar 2007 02:44:13 -0000
- Subject: [Bug c++/31187] [4.2/4.3 regression] extern declaration of variable in anonymous namespace prevents use of its address as template argument
- References: <bug-31187-1827@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from mark at codesourcery dot com 2007-03-23 02:44 -------
Subject: Re: [4.2/4.3 regression] extern declaration of variable
in anonymous namespace prevents use of its address as template argument
bangerth at dealii dot org wrote:
> ------- Comment #4 from bangerth at dealii dot org 2007-03-23 02:37 -------
> Without wanting to be a distractor, but can variables of a type that
> was declared in an anonymous namespace really have external linkage?
That's not the case here; the class is in the global namespace. Only
the variable is in the anonymous namespace, and entities in anonymous
namespaces do have external linkage.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31187