http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58104
--- Comment #2 from DBarto at visionpro dot com ---
I added the -pthread flag and nothing changed.
The code failed to execute at the point noted in the assembly output.
David
On Aug 8, 2013, at 9:10 AM, redi at gcc dot gnu.org
wrote
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58104
--- Comment #3 from DBarto at visionpro dot com ---
/opt/local/bin/g++-mp-4.7 -std=c++11 -Wall -Wextra -pthread -g use_once.cpp -o
use_once
./use_once
571_ ./use_once
Segmentation fault: 11
gdb use_once
(gdb) r
Starting program: /Users/barto/mvp