This is the mail archive of the gcc@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]

Re: C++: __attribute__((visibility)) for classes


Matt Austern wrote:

> If you try writing
>    struct  __attribute__((visibility("hidden"))) abcd { virtual
> ~abcd(); };
> then the compiler informs you that visibility only applies to function
> and variable declarations, not type declarations.
> [...]
> If people think something like this might be a good idea, I'll submit
> a patch.

You may want to look into PR9283 and PR15000. The latter has also a very
complete patch which went unreviewed.

Giovanni Bajo



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