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

            Bug ID: 91660
           Summary: [8/9/10 Regression] Missing error on invalid type
                    declaration
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Affects versions down to gfortran-5.
Missing a closing bracket :


$ cat z1.f90
program p
   type t
   end type
   type (t x
   x = t()
end


$ gfortran-5 -c z1.f90
z1.f90:4:3:

    type (t x
   1
Error: Unclassifiable statement at (1)
z1.f90:5:7:

    x = t()
       1
Error: Can't convert TYPE(t) to REAL(8) at (1)


$ gfortran-10-20190901 -c z1.f90
$

Reply via email to