http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55997
helo <helobugz at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |helobugz at gmail dot com --- Comment #2 from helo <helobugz at gmail dot com> 2013-01-21 23:21:19 UTC --- Hitting this bug on x86. gcc 4.7.2 (and 4.7.1). Can't pinpoint why I haven't experienced it before today. I haven't investigated yet, but I'm working around it with: sed -i -e 's/std::log(2.0L)/0.693147/' libstdc++-v3/include/bits/random.tcc 0.693147 comes from mytest.cpp: cout << std::log(2.0L); HTH