This is the mail archive of the
mailing list for the GCC project.
Re: [Patch, fortran] PR54107 ICE on recursive interface
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- To: Mikael Morin <mikael dot morin at sfr dot fr>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 8 Feb 2013 14:06:45 +0100
- Subject: Re: [Patch, fortran] PR54107 ICE on recursive interface
- References: <51142A89.firstname.lastname@example.org>
The patch itself is good for trunk - it's rather clever, in fact :-)
What's happened to the testcase? There are still lots of commented
out lines that I presume are fixed.
On 7 February 2013 23:28, Mikael Morin <email@example.com> wrote:
> this is the last remaining patch to fix an infinite recursion when
> creating the middle-end type of a function having a dummy
> procedure whose interface is the function itself.
> This patch is a slight variation of the comment 4 fix that was attached
> to the PR. It sets the procedure's backend_decl to error_mark_node, so
> that the recursion can be detected and handled in the next iteration. I
> don't think the middle-end supports recursive function types, so the
> middle-end types for recursive dummy procedure are actually variadic
> procedure types.
> regression tested on x86_64-unknown-linux-gnu. OK for trunk?
The knack of flying is learning how to throw yourself at the ground and miss.
--Hitchhikers Guide to the Galaxy