This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/16511] New: Test 19990905-0.f fails with gfortran


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]