This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++: __attribute__((visibility)) for classes
- From: "Giovanni Bajo" <giovannibajo at libero dot it>
- To: "GCC" <gcc at gcc dot gnu dot org>,"Matt Austern" <austern at apple dot com>
- Date: Wed, 19 May 2004 22:27:53 +0200
- Subject: Re: C++: __attribute__((visibility)) for classes
- References: <A29AEF58-A9D1-11D8-B646-000393B2ABA2@apple.com>
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