http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51795
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-01-27 11:32:10 UTC --- The problem is that isn't true that __r < __q, thus one of the preconditions for the algorithm (as explained in eg, Numerical Recipes) is violated.