This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25592] template struct with visibility set to default and -fvisibility=hidden
- 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: 28 Dec 2005 20:05:40 -0000
- Subject: [Bug c++/25592] template struct with visibility set to default and -fvisibility=hidden
- References: <bug-25592-11053@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 2005-12-28 20:05 -------
Simplified testcase:
#include <typeinfo>
template<typename T> struct __attribute__ ((visibility("default"))) Abc{
~Abc(){}
Abc(){}
};
const std::type_info *f(void)
{
return &typeid(Abc<int>);
}
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|no typeinfo for template |template struct with
|class if requested by |visibility set to default
|__attribute__(((visibility("|and -fvisibility=hidden
|default"))) |
Target Milestone|--- |4.1.0
Version|unknown |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25592