http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57628
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >Since my code includes an expression that can be evaluated at compile time and >it's a division by zero, parameter are special in fortran. The expression is evaluated at compile time because of the parameter. a has to be replaced with 0 according to the fortran standard which is why you are getting this error.