https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61637
--- Comment #15 from Krishnamoorthy C <chandrakm at hotmail dot com> --- Thanks for the info. Sorry, the original intent was to generate a shared lib hence the shared options, but i have moved the code to generate executable program, but the exceptions not being caught is still there. I am still trying what you suggested, stripped many of the compiler options to see if if these are the cause.