This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/36820] Exception can't be catched when --version-script is used
- From: "alexi dot zuo at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jul 2008 01:57:11 -0000
- Subject: [Bug other/36820] Exception can't be catched when --version-script is used
- References: <bug-36820-16463@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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