https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61637

--- Comment #11 from David Edelsohn <dje at gcc dot gnu.org> ---
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.

Reply via email to