This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/21764] New: visibility attributes on namespace scope


As per the commentary in 

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19664.

What is desired is to add the visibility attributes to namespace scope, in
addition to class scope.

So, things like:

namespace std __attribute__ ((visibility ("default") ));
{
  class foo { ... };
}

when compiled with -fvisibility=hidden would hide all foo symbols, including
ctor, dtor, etc.

-- 
           Summary: visibility attributes on namespace scope
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bkoz at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21764


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]