The library routines for EXPONENT return a INTEGER(4) value. When -fdefault-integer-8 is used, the result needs to be convert to the correct type. The attach patch, regression tested on amd64-*-freebsd, does the trick. OK for trunk? 2007-07-31 Steven G. Kargl PR fortran/32942 * gfortran.dg/exponent_2.f90: New test. 2007-07-31 Steven G. Kargl PR fortran/32942 *trans-intrinsic.c (gfc_conv_intrinsic_exponent): Convert to correct type. -- Steve