This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33188] New: Fortran 2003: Type declarations without componends
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Aug 2007 12:12:35 -0000
- Subject: [Bug fortran/33188] New: Fortran 2003: Type declarations without componends
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
type t
end type t
Is valid Fortran 2003 and invalid Fortran 95; however, gfortran rejects it
with:
Error: Derived type definition at (1) has no components
Fortran 95:
4.4.1 Derived-type definition
R422 derived-type-def is derived-type-stmt
[ private-sequence-stmt ] ...
component-def-stmt
[ component-def-stmt ] ...
end-type-stmt
Fortran 2003:
4.5.1 Derived-type definition
R429 derived-type-def is derived-type-stmt
[ type-param-def-stmt ] ...
[ private-or-sequence ] ...
[ component-part ]
[ type-bound-procedure-part ]
end-type-stmt
--
Summary: Fortran 2003: Type declarations without componends
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33188