[Bug c++/13905] Use of __attribute__ ((visibility("X"))) in class and struct declarations

dannysmith at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Jan 30 04:35:00 GMT 2004


------- Additional Comments From dannysmith at gcc dot gnu dot org  2004-01-30 04:35 -------
Giovanni wrote:
'3.4 should be stable right now, but cygwin is not a stable platform for GCC 
development'

And one of the major instabilities in cygwin and mingw target is the 
non-portable 'class __attribute__((dll[im/ex]port)) Foo' semantics, on which 
this enhancement request seems to be based.  Dllimport  of classes causes
major headaches (FWIW, MS's own MFC framework uses .def files ("3. Specifying a 
file with symbols to be exported to the linker is good enough.") to buid shared 
libaries.

dllimport/export is really a decl attribute.  Applying it to user-defined types 
causes the problems.  I suspect the the same would occur with visibility 
attribute.

Danny


-- 


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



More information about the Gcc-bugs mailing list