This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran, PR20851] Disallow dummy arguments in init exprs in elemental procedures
- From: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- To: Paul Thomas <paulthomas2 at wanadoo dot fr>
- Cc: Fortran List <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 07 Oct 2007 13:52:12 +0200
- Subject: Re: [gfortran, PR20851] Disallow dummy arguments in init exprs in elemental procedures
- References: <4708C122.6050903@physik.uni-muenchen.de> <4708C509.3060402@wanadoo.fr>
Hi Paul,
Paul Thomas wrote:
Fixing this issue turned out to be very simple, because valid
expressions are folded by the simplifiers, i.e. the dummy argument
doesn't appear in their simplified versions.
Hah! A good one...
Of course this only occured to me after working out a patch that looked
at all sub-expressions --- somehow it never triggered: the
sub-expressions I was looking for had disappeared!
Built and tested on i686-darwin. Ok?
OK
Thanks, this is now r129069.
Cheers,
- Tobi