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

            Bug ID: 103748
           Summary: [PDT] Variable declaration with PDT syntax when the
                    type is not a PDT fails to trigger a syntax error
           Product: gcc
           Version: 10.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: b.j.braams at cwi dot nl
  Target Milestone: ---

This code compiles without error message even though it contains a syntax
error.
program test
  implicit none
  type f_type
     integer, allocatable :: x(:)
  end type f_type
  type (f_type(n=9)) :: f ! should trigger a syntax error
  stop
end program test
(History: f_type used to be a parameterized type. I changed it, but neglected
to change the declaration of a variable of type (f_type).)

Reply via email to