This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran] Fix PRs 14771, 20894, 25048 : keep track of parentheses
- From: Tobias dot Schlueter at Physik dot Uni-Muenchen dot DE
- To: Erik Zeek <zeekec at mad dot scientist dot com>
- Cc: "Tobias dot Schlueter at physik dot uni-muenchen dot de" <Tobias dot Schlueter at physik dot uni-muenchen dot de>, 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 16:26:44 +0100
- Subject: Re: [gfortran] Fix PRs 14771, 20894, 25048 : keep track of parentheses
- References: <1139500451.43eb65a34ab0e@www.cip.physik.uni-muenchen.de> <1716f8a00602100720h37659041q47b61cd15ed1e2c0@mail.gmail.com>
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.
- Tobi