more illegal code in g77 testsuite

Steven G. Kargl kargl@troutmask.apl.washington.edu
Sat May 24 22:30:00 GMT 2003


980519-2.f contains illegal Fortran; yet g77 compiles
it without a warning or an error.  A cut-down version 
of 980519-2.f is

      subroutine simul_trace(in, Xsp)

      common /Idim/ jT_f, hd_T, jT_l
      
      real Xsp
      real in(jT_f-hd_T:jT_l)
      
      in(jT_f-hd_T) = Xsp
      end

The expression jT_f-hd_T is illegal because
hd_T is a real variable.

-- 
Steve
http://troutmask.apl.washington.edu/~kargl/



More information about the Gcc mailing list