[Bug fortran/82865] New: Option -fdec collides with PDT
gscfq@t-online.de
gcc-bugzilla@gcc.gnu.org
Mon Nov 6 17:46:00 GMT 2017
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: gscfq@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
More information about the Gcc-bugs
mailing list