fortran/8485: g77 doesn't accept INTEGER*8 constant in PARAMETER multiplication

pmarguinaud@hotmail.com pmarguinaud@hotmail.com
Wed Nov 6 14:06:00 GMT 2002


>Number:         8485
>Category:       fortran
>Synopsis:       g77 doesn't accept INTEGER*8 constant in PARAMETER multiplication
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 06 14:06:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Philou Marguinad
>Release:        3.2
>Organization:
>Environment:
Linux (doesn't seem to be really relevant.
>Description:
g77 rejects the following, which uses a supported extension
(namely, 64-bit INTEGERs):

      PARAMETER (PPMULT = 1.0E5)
      INTEGER*8 NWRONG
      PARAMETER (NWRONG = 8)
      PARAMETER (DDMULT = PPMULT * NWRONG)
      END

      PARAMETER (DDMULT = PPMULT * NWRONG)
                          ^
Expression at (^) has incorrect data type or rank for
its context
>How-To-Repeat:
Compile the above just using g77 file.f
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list