This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/15382] New: [gfortran] frontend too lenient when checking variable declarations
- From: "Tobias dot Schlueter at physik dot uni-muenchen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 May 2004 17:44:06 -0000
- Subject: [Bug fortran/15382] New: [gfortran] frontend too lenient when checking variable declarations
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following should issue an error in the frontend:
SUBROUTINE BARY()
COMMON /A/ X
EQUIVALENCE (X,Y)
REAL :: Y = 1.
DATA X /1./
PRINT *, X, Y
END
currently it fails with a fatal error in the backend:
[tobi@marktplatz tests]$ gfortran com.f90
com.f90: In function `bary':
com.f90:16: fatal error: gfc_todo: Not Implemented: initial values for COMMON or
EQUIVALENCE
compilation terminated.
[tobi@marktplatz tests]$
--
Summary: [gfortran] frontend too lenient when checking variable
declarations
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: Tobias dot Schlueter at physik dot uni-muenchen dot de
ReportedBy: Tobias dot Schlueter at physik dot uni-muenchen dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15382