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

            Bug ID: 82865
           Summary: Option -fdec collides with PDT
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Several testsuite files ./gcc/testsuite/gfortran.dg/pdt_*
are producing extra error messages when combined with option -fdec.
One short example :


$ cat z1.f90
program p
   type t(a)
      integer, len :: a
   end type
end


$ gfortran-8-20171105 -c z1.f90
$
$ gfortran-8-20171105 -c z1.f90 -fdec
z1.f90:3:18:

       integer, len :: a
                  1
Error: Attribute at (1) is not allowed outside a TYPE definition
z1.f90:4:6:

    end type
      1
Error: Expecting END PROGRAM statement at (1)
z1.f90:2:7:

    type t(a)
       1
Error: FORMAT tag at (1) must be of type default-kind CHARACTER or of INTEGER

Reply via email to