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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |pault at gcc dot gnu.org

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r8-3056-g5bab4c9631c478b7940e952ea57de680321d5a8e. Before that it
was rejected:

$ gcc-7 pr92960.f90 -c
pr92960.f90:2:3:

    type t(n)
   1
Error: Unclassifiable statement at (1)
pr92960.f90:3:14:

       integer, len :: n
              1
Error: Invalid character in name at (1)
pr92960.f90:5:6:

    end type
      1
Error: Expecting END PROGRAM statement at (1)
pr92960.f90:6:9:

    type(t(:)), allocatable :: z
         1
Error: Derived type ‘t’ at (1) is being used before it is defined
pr92960.f90:7:13:

    allocate (t(7) :: z)
             1
Error: Allocate-object at (1) is neither a data pointer nor an allocatable
variable
pr92960.f90:8:14:

    associate (y => z%c)
              1
Error: Expected association at (1)
pr92960.f90:10:6:

    end associate
      1
Error: Expecting END PROGRAM statement at (1)
pr92960.f90:4:16:

       character(n) :: c
                1
Error: Variable ‘n’ cannot appear in the expression at (1)
pr92960.f90:4:23:

       character(n) :: c
                       1
Error: ‘c’ at (1) must have constant character length in this context

Reply via email to