This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/44285] Need an option that will create symbols for all public c++ methods, not only for those which bodies are outside the class declaration
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 May 2010 15:51:48 -0000
- Subject: [Bug c++/44285] Need an option that will create symbols for all public c++ methods, not only for those which bodies are outside the class declaration
- References: <bug-44285-6649@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2010-05-26 15:51 -------
Well in C++, it is an ODR violation if the Translation units don't define
Abc::meth_used and Abc::meth_unused the same. The linkage on these functions
is called vague. Exporting them will increase link time in most cases.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44285