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

Reply via email to