https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61637
--- Comment #12 from Krishnamoorthy C <chandrakm at hotmail dot com> --- (In reply to David Edelsohn from comment #11) > I tested a corrected version of your example with both G++ 4.8.1 from > Perzl.org / oss4aix.org and GCC trunk from a few days ago. I compiled both > 32 bit (default) and 64 bit (-maix64) and -pthread. All print > > "This is not caught 20" > > You seem to be invoking GCC incorrectly on AIX. Why are you adding defining > Linux x86 and AMD definitions on POWER AIX? Why are you changing the library > search path order? Why are you linking with -lpthread instead of using > -pthread GCC/G++ command line option? > > From when did you install GCC 4.8.1 on your system? Hopefully not IBM AIX > Toolkit. Thanks for validating. I get this error: "terminate called after throwing an instance of '<Namespace>::<derived exception class from std::exepction>' terminate called recursively IOT/Abort trap (core dumped)" I am re-verifying the order of lib loading.