This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/18993] incorrect parsing in fixed-form
- From: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Dec 2004 17:33:08 -0000
- Subject: [Bug fortran/18993] incorrect parsing in fixed-form
- References: <20041214182851.18993.tow21@cam.ac.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From tobi at gcc dot gnu dot org 2004-12-15 17:33 -------
This is much worse than it seems. The problem is in statement matching, e.g. we
accept this, as if there was a semicolon on the indicated line:
subroutine ordern( )
real, pointer :: aux(:,:)
C Nullify pointers
nullify(aux) i = i + 1 !<------ SYNTAX ERROR
C Set default sizes for order N arrays
end subroutine ordern
the problem is that we don't match the end of statement correctly. I have a
patch which addresses this case, but this problem will quite probably affect
other statements as well, so I'm looking into those first.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |tobi at gcc dot gnu dot org
Severity|normal |critical
Keywords| |accepts-invalid
Summary|gfortran fails to recognise |incorrect parsing in fixed-
|comment line. |form
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18993