[Bug fortran/33196] New: Generic name to non-standard procedure: Not diagnosed with -std=f95

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Aug 26 18:11:00 GMT 2007


gfortran.dg/gamma_2.f90 (of PR 32980) contains:

+! { dg-options "-std=f2003 -Wall" }
+rsp = gamma(rsp)  ! FIXME:  "is not included in the selected standard"
+rdp = gamma(rdp)  ! FIXME:  "is not included in the selected standard"
+rqp = gamma(rqp)  ! FIXME:  "is not included in the selected standard"
+rdp = dgamma(rdp) ! { dg-error "is not included in the selected standard" }

As one can see only for the specific name (dgamma) there is an error with
-std=f2003 but not for the generic name.

The definition contains the proper STD_GNU:

add_sym_1 ("gamma", [...] GFC_STD_GNU [...]
add_sym_1 ("dgamma", [...] GFC_STD_GNU [...]
make_generic ("gamma", GFC_ISYM_GAMMA, GFC_STD_GNU);


-- 
           Summary: Generic name to non-standard procedure: Not diagnosed
                    with -std=f95
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          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=33196



More information about the Gcc-bugs mailing list