This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [gfortran, PR20851] Disallow dummy arguments in init exprs in elemental procedures
- From: Paul Thomas <paulthomas2 at wanadoo dot fr>
- To: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- 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:37:45 +0200
- Subject: Re: [gfortran, PR20851] Disallow dummy arguments in init exprs in elemental procedures
- References: <4708C122.6050903@physik.uni-muenchen.de>
:REVIEWMAIL::
Tobias,
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...
The change to resolve_fl_variable() was necessary to avoid a double
error message being printed: is_non_constant_shape_array(), in spite
of its name suggesting otherwise, has side-effects and may issue
errors, therefore I moved it to the end of the logical expressions in
order to ensure that it's only called in cases where its result is
important.
Ah, yes indeed.
Built and tested on i686-darwin. Ok?
OK
Thanks
Paul