http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52733
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-04-17 19:26:16 UTC --- For the record: on Lion things seem in pretty good shape for current gcc-4_7: builds is fine and std::log(2.0L) also works at any optimization level.