This is the mail archive of the
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.email@example.com> <4708C509.firstname.lastname@example.org>
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?
Thanks, this is now r129069.