This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, fortran] PR30880 - Derived types with default value -- function with ENTRY: rejected at compile time
- From: "Paul Richard Thomas" <paul dot richard dot thomas at gmail dot com>
- To: "FX Coudert" <fxcoudert at gmail dot com>
- Cc: "fortran at gcc dot gnu dot org List" <fortran at gcc dot gnu dot org>, "gcc-patches List" <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 18 Mar 2007 14:03:19 +0100
- Subject: Re: [Patch, fortran] PR30880 - Derived types with default value -- function with ENTRY: rejected at compile time
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PtHc7QhTtM9w1QQ647ECMyHcGenSQx86+Msd5phL24H2YOJe0jM94M842/yYTsy9iUjmK7GVjNymejnBKaP9b9kIRpRC3C5VKmGjzM1Apx5UGD8YuevLCe3tuZnffW5TfwGDjT53CRfq4FcBmBBEuvzs3wFIfqZleZa074vPkpY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MoDcTgZ6ZxbWUaxlVSmuXLPaATv0y0vwh26ZjLnGl4bNNXwiBMlP7OJSyIkqa7W8QFR1/ZdOqd6+LygHb+N4kvsvN5ixXuC5vczVSKuAiotFcDE/7+vbZcHf1wC+1tGNmal0+FIyqME2bHaDwrngBs95ApvVXIhFh7RdTOVrJzU=
- References: <96819407-365F-4811-BAFA-B5829AD20F8C@gmail.com>
FX,
but still, we will go to the last instruction of this block and
return FAILURE. If that is what you wanted it to do, it probably
needs a comment saying why, because it doesn't look trivial to me.
Indeed, I can understand why we want to short-circuit the end of the
function, but shouldn't we be returning SUCCESS?
This is a fiendishly difficult question because I have quite forgotten
what I was up to with this patch:) I will apply the derived type
association patch and come back to this by applying to my tree and
reminding myself of it.
Thanks a lot!
Paul
--
Saint Augustine - "O Lord, help me to be pure, but not yet"