https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64124

            Bug ID: 64124
           Summary: [F95] Valid constant expr rejected
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fxcoudert at gcc dot gnu.org

$ cat a.f90
  character(len=kind(1)) x
  integer(len(x)) y
  end
$ gfortran a.f90 -std=f95
a.f90:2.14:

  integer(len(x)) y
              1
Error: Parameter 'x' at (1) has not been declared or is a variable, which does
not reduce to a constant expression

Reply via email to