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++/28786] New: No way set visibility of typeinfo without setting VTT and vtable similarly


There is currently no way to set the visibility of the typeinfo, except by
setting the visibility of the VTT and vtable.

This is unfortunate if you want to be able to using RTTI features on a class
from another module, but don't want to export VTTs and vtables.

It is unclear what the best attribute name to tell gcc that you want this is,
but something like:

class Foo
  : public virtual Bar
{
public:
  virtual void doSomething();
} __attribute__((visibility("hidden")))
__attribute__((typeinfo_visibility("default")));

seems reasonable.


-- 
           Summary: No way set visibility of typeinfo without setting VTT
                    and vtable similarly
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ak dot miller at auckland dot ac dot nz


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


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