This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/25592] template struct with visibility set to default and -fvisibility=hidden



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]