[Bug other/36820] Exception can't be catched when --version-script is used

2008-07-15 Thread alexi dot zuo at gmail dot com


--- Comment #2 from alexi dot zuo at gmail dot com  2008-07-16 01:57 ---
Since libfoo.so is linked to libbar.so, and libfoo.so does not hide the
typeinfo of ebase (does that means all defintions in libfoo.so are visible to
libbar.so? ), I suppose libbar.so should be able to see the typeinfo of ebase
and can catch the exception.

By the way, how do you explain the problem disappears when I add an non-inline
virtual function to ebase (in a .cpp file exception.cpp)?

Thanks,


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36820



[Bug other/36820] Exception can't be catched when --version-script is used

2008-07-14 Thread pinskia at gcc dot gnu dot org


--- Comment #1 from pinskia at gcc dot gnu dot org  2008-07-14 18:43 ---
I don't think this is a bug as the typeinfo of ebase in libbar is being marked
as hidden (local) so you have two different typeinfo that are not merged at
load time.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

   Severity|blocker |normal
  Component|c++ |other
  GCC build triplet|X86 32bit Redhat Enterprise |
   |Linux AS release 4  |
   GCC host triplet|X86 32bit Redhat Enterprise |
   |Linux AS release 4  |
 GCC target triplet|X86 32bit Redhat Enterprise |i686-pc-linux-gnu
   |Linux AS release 4  |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36820