This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, fortran] PR29284 - [4.1/4.2 Regression] ICE for optional subroutine argument
- From: "François-Xavier Coudert" <fxcoudert at gmail dot com>
- To: "Paul Thomas" <paulthomas2 at wanadoo dot fr>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, patch <gcc-patches at gcc dot gnu dot org>, rakuen_himawari at yahoo dot co dot jp
- Date: Tue, 3 Oct 2006 18:34:10 +0200
- Subject: Re: [Patch, fortran] PR29284 - [4.1/4.2 Regression] ICE for optional subroutine argument
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uSvvgf5HDItB/+xwFD9TEBKkdEtZSqjbTR27EIdbJdzYOCqKL2vOxXTj5VjszhZbHhS4bvVOnWd0LtAfQI8uZJyIrtE4asYWnqQOmj6PsYQ030TShTJ9JY7CY5P7V4bASbUxyOUC1cpuIuvLORIJtL71gkNvFE1481Z/gYLbBGo=
- References: <451FC5F8.5030203@wanadoo.fr> <2EEDE911-8D55-42D2-A57C-A0DD4CF9B3B8@gmail.com> <451FD335.2090205@wanadoo.fr> <452195D0.1000706@wanadoo.fr>
2006-10-03 Paul Thomas <pault@gcc.gnu.org>
PR fortran/29284
* trans-expr.c (gfc_conv_function_call): Check the expression
and the formal symbol are present when testing the actual
argument.
2006-10-03 Paul Thomas <pault@gcc.gnu.org>
PR fortran/29284
* gfortran.dg/optional_assumed_charlen_1.f90: New test.
PR fortran/29321
PR fortran/29322
* gfortran.dg/missing_optional_dummy_2.f90: New test.
OK to commit. I'm not a huge supporter of moving function calls
around, but I tried to figure it out and I think in this case, the
order is OK.
[Frankly, for the readability & size difference in the final f951
executable vs maintainance potential trouble ratio, I think it's not a
win.]
FX