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

Giovanni Bajo giovannibajo@libero.it
Wed May 19 20:27:00 GMT 2004


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




More information about the Gcc mailing list