[Bug c++/61113] Mark private methods hidden automatically

2014-05-08 Thread jpakkane at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61113 --- Comment #2 from jpakkane at gmail dot com --- In that case it would fail. But you can make it work by doing this (assuming compilation with -fvisibility=hidden): class __attribute__ ((visibility("default"))) Thing final { public: void public

[Bug c++/61113] Mark private methods hidden automatically

2014-05-08 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61113 --- Comment #1 from Jonathan Wakely --- (In reply to jpakkane from comment #0) > That is, both the private and public methods are exported in the symbol > table. The latter is wasteful because private methods can only be called > from within the c