This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21764] visibility attributes on namespace scope
- From: "jason at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Nov 2005 06:15:29 -0000
- Subject: [Bug c++/21764] visibility attributes on namespace scope
- References: <bug-21764-365@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from jason at redhat dot com 2005-11-18 06:15 -------
Subject: Re: visibility attributes on namespace scope
bkoz at gcc dot gnu dot org wrote:
> What do you mean, "less or equal visibility to their enclosing scope?"
Where default > protected > hidden > internal, if a class or namespace
has a specified visibility, nested scopes should have the same
visibility or something later in the above sequence.
> My meta-goal is to try and give namespace and class scope visibilty attributes
> similar meanings. Do you think this is worthwhile, possible, and do you think
> this is a good idea?
Yes, guess I should have said that before nitpicking the examples.
> Yeah, maybe default namespace with hidden nested makes more sense for the
> examples. However, wouldn't both have to be supported, anyway?
Both would be supported by the simplest implementation, though we could
enforce rules like the above if we wanted to. Mostly I was just puzzled
that the examples in both PRs seemed inside out, and wondered if I was
missing some compelling use case.
Jason
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21764