This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, fortran] PR29539 and PR29634 - derived_types without a proc_name causing an ICE.
- From: "François-Xavier Coudert" <fxcoudert at gmail dot com>
- 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: Mon, 6 Nov 2006 09:39:50 +0100
- Subject: Re: [Patch, fortran] PR29539 and PR29634 - derived_types without a proc_name causing an ICE.
- 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=dMhcoSVxmzeXD4KYtIFyzLVLk/E2OYVcnl1e6wHgzawRVREurUmOzljgt8wSwzPGaLLl6Wqsxf4JUamEUrkBK3K7CiUhaSyTmEKDgEDrglm0AumTAQ7b0qTMxBHyUrp/0wEdO7DegQLzW1N0roVNq7u9FTQRAe0vrWw52k6ByGk=
- References: <454E5914.7060900@wanadoo.fr>
2006-10-31 Paul Thomas <pault@gcc.gnu.org>
PR fortran/29539
PR fortran/29634
* decl.c (variable_decl): Add test for presence of proc_name.
* error.c (gfc_error_flag_test): New function.
* gfortran.h : Prototype for gfc_error_flag_test.
OK for mainline, 4.2 and 4.1 with usual conditions. I think you're
missing a ChangeLog bit for the following:
*************** ok:
*** 2384,2390 ****
break;
}
! gfc_error ("Syntax error in data declaration at %C");
m = MATCH_ERROR;
gfc_free_data_all (gfc_current_ns);
--- 2385,2392 ----
break;
}
! if (gfc_error_flag_test () == 0)
! gfc_error ("Syntax error in data declaration at %C");
m = MATCH_ERROR;
gfc_free_data_all (gfc_current_ns);