This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [gfortran] Fix PRs 14771, 20894, 25048 : keep track of parentheses
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Tobias dot Schlueter at Physik dot Uni-Muenchen dot DE
- Cc: zeekec at mad dot scientist dot com (Erik Zeek), fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, walt at fortran dot com
- Date: Fri, 10 Feb 2006 11:08:25 -0500 (EST)
- Subject: Re: [gfortran] Fix PRs 14771, 20894, 25048 : keep track of parentheses
>
> Quoting Erik Zeek <zeekec@mad.scientist.com>:
> > This appears to cause the following to fail:
> >
> > program test
> > call bob(5)
> > contains
> > subroutine bob(n)
> > integer, intent(in) :: n
> > character(len=n) :: temp1
> > character(len=(n)) :: temp2 ! Fails here
> > end subroutine bob
> > end program test
> >
> > gfortran-CVS gf.F95
> > In file gf.F95:7
> >
> > character(len=(n)) :: temp2
> > 1
> > Error: Only intrinsic operators can be used in expression at (1)
>
> Thanks, I've been waiting for this kind of fallout to appear, I have a fix in
> testing, and am auditing the code for similar problems.
Building locus has the same problem:
Error: Only intrinsic operators can be used in expression at (1)
In file lucas_distrib_spec.f90:360
integer, intent(in) :: base_index(0:(n-1)/32)
1
Thanks,
Andrew Pinski