------- Comment #18 from michael at jarvis dot net  2010-06-06 19:32 -------
I can confirm the bug on my system (MacOS 10.6.3, Intel Core i7) with g++
4.4.2, 4.4.3 and 4.4.4. 

However, I have discovered a workaround.  Linking with -lpthread makes the
problem go away, both for this simple test case, and my larger program where I
too discovered the bug.  My program only started failing when I turned off the
OpenMP stuff.  However, if I leave OpenMP off, but link with -lpthread anyway,
the exception stuff works fine.  Likewise, this example program works correctly
when I compile with -lpthread.


-- 

michael at jarvis dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |michael at jarvis dot net


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42159

Reply via email to