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