[Bug fortran/31465] New: spurious error: Implicitly typed PARAMETER doesn't match a later IMPLICIT type

michael dot a dot richmond at nasa dot gov gcc-bugzilla@gcc.gnu.org
Tue Apr 3 17:21:00 GMT 2007


The program listed below produces a spurious error message:

test.f90:2.11:

PARAMETER(C = 0.0D0)
          1
Error: Implicitly typed PARAMETER 'c' at (1) doesn't match a later IMPLICIT
type

The message will disappear if I put the IMPLICIT declaration before the
PARAMETER declaration.

PROGRAM test
PARAMETER(C = 0.0D0)
IMPLICIT REAL*8 (C)
END


-- 
           Summary: spurious error: Implicitly typed PARAMETER doesn't match
                    a later IMPLICIT type
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: michael dot a dot richmond at nasa dot gov


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31465



More information about the Gcc-bugs mailing list