Found this at http://groups.google.com/group/gg95/browse_thread/thread/667fe259fb346773
I think the reporter is right that this program is valid. NAG f95 and ifort accept is without error. g95 and gfortran reject it with: Error: SAVE attribute at (1) cannot be specified in a PURE procedure module g95bug save integer :: i=20 contains pure function tell_i() result (answer) integer :: answer answer=i end function tell_i end module g95bug -- Summary: rej.valid: Host-associated SAVEd variable and PURE function Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35837