using GNU Fortran 95 (GCC) 4.1.0 20051126 (prerelease) with '-g -pedantic -std=f95', I get a bad / no diagnostic for the following invalid code:
TYPE T1 INTEGER :: I=7 END TYPE T1 TYPE(T1), SAVE, DIMENSION(4) :: D DATA (D(I),I=1,2) /T1(3),T1(3)/ IF (ANY(D%I.NE.(/3,3,7,7/))) write(6,*) "Never mind ..." END -- Summary: better diagnostic needed Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jv244 at cam dot ac dot uk http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25057