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

giovannibajo at libero dot it gcc-bugzilla@gcc.gnu.org
Thu May 26 12:02:00 GMT 2005


------- Additional Comments From giovannibajo at libero dot it  2005-05-26 10:18 -------
Please, explicitally specify how you would like this to work with nested 
namespaces.

Also, whoever implements this should also make sure it works correctly with 
namespace:

namespace N __attribute__((visibility ("hidden")))
{
   template <class T>
   struct B
   {
        B() {}
        ~B() {}
        void foo(void) {}
   };

   template <>
   struct B<int>;
}

template <>
struct ::N::B<int>
{
   void bar(void) {}    // still hidden!
}


-- 


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



More information about the Gcc-bugs mailing list