This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/16511] New: Test 19990905-0.f fails with gfortran
- From: "billingd at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jul 2004 05:54:42 -0000
- Subject: [Bug fortran/16511] New: Test 19990905-0.f fails with gfortran
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
g77 test 19990905-0.f fails with gfortran.
The test is
c { dg-do compile }
* =foo0.f in Burley's g77 test suite.
subroutine sub(a)
common /info/ iarray(1000)
equivalence (m,iarray(100)), (n,iarray(200))
real a(m,n)
a(1,1) = a(2,2)
end
In file /usr/local/src/gcc/gcc/testsuite/gfortran.dg/g77/19990905-0.f:6
real a(m,n)
1
Error: Variable 'm' cannot appear in the expression at (1)
According to Steve Kargl:
Ftnchek says its legal Fortran 77.
kargl[209] ftnchek -f77=all 19990905-0.f
FTNCHEK Version 3.2 November 2002
File 19990905-0.f:
0 syntax errors detected in file 19990905-0.f
No main program found
Warning: Common block INFO Elements used but never set: all
Whoops, in looking at the gfortran error message, I thought I
sent a PR for this, because I have this noted in private testsuite
as a failure.
--
Summary: Test 19990905-0.f fails with gfortran
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: billingd at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16511