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

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Jan 28 23:12:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-28 23:12 -------
We are no going to do it.  The point is that it makes things look werid like:

class __attribute__((visibility("public"))) T {
private:
int i; //is this public or private?
};

The point I was trying to make is that if you want the default accessor to be public use struct 
instead of class.

Also I forgot to mention we should not always follow M$ and their crappy compilers.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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



More information about the Gcc-bugs mailing list