https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67419
--- Comment #2 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> --- > --- Comment #1 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> --- > Can you run the following test and paste the output here? [...] Sure: 16 789.135620117187500000000000000000000 789.13562011718750 NaN 28.091557808658237 NaN The result is identical for both the mainline libgfortran.so.3 and the bundled gcc 4.8 libgfortran.so.3, so this might well be a libm bug introduced in Solaris 12. Rainer