This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
[Patch, fortran] PR32047 - ICE (segfault) for pure function without argument
- From: "Paul Richard Thomas" <paul dot richard dot thomas at gmail dot com>
- To: "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: Wed, 23 May 2007 12:49:50 +0200
- Subject: [Patch, fortran] PR32047 - ICE (segfault) for pure function without argument
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=nWkIWQa0Lxf2S7e8kHEBZCYZwPDs0uBn/i5KmExrBvHmlOgimA/my3VxSZtdF4F9xMY9Sk/M3VFRn7m8IASW/iyXDLadPqzdFv2JtnZyt+tqAHnKvD7JAxH0jlY9j4nCecNMc9+37noMU5jrAqtWb4/tnS6zuaLySlg+d+znuLo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=Hb/Q56wPWoQeRnpyCkIVlzMhlFjHBU0KlNlTjkEVr1APzPVZV/pUQbWYD8ermUlMc3fIMcIqhugA/8nUi1Voz2IbPtDN9IGni0GyNDy1Zi2GWwgg4jqPMfJohkQoz0HXFIessV24sVhwdNXtzFLRVg5Mqa+aCqUKwVDgQ3Q+49c=
:ADDPATCH fortran:
This problem was caused by an incorrect ordering of conditions in my
fix for PR31215. I propose to apply this patch, as 'obvious',
tonight.
Regtested on Cygwin_NT/PIV
Paul
2007-05-23 Paul Thomas <pault@gcc.gnu.org>
PR fortran/32047
* trans-expr.c (gfc_apply_interface_mapping_to_expr): Change
order in logic under EXPR_FUNCTION to handle functions with
no arguments.
2007-05-23 Paul Thomas <pault@gcc.gnu.org>
PR fortran/32047
* gfortran.dg/result_in_spec_2.f90: New test.
Attachment:
pr32047.diff
Description: Text document