ICE on invalid with procedure interface

Tobias Burnus burnus@net-b.de
Fri Oct 7 17:14:00 GMT 2011


On 10/07/2011 06:57 PM, Andrew Benson wrote:
> The following causes an ICE using gfortran 4.7 r179642:

At a glance the program looks valid. The issue seems to be a regression: 
It works with 4.3 and 4.4 but it fails with 4.5, 4.6 and 4.7.

> Interestingly, 4.4.5 compiles without complaint, unless I remove "Proc1" from
> the "public" statement in which case it instead complains "Error: Interface
> 'proc1' of procedure 'proc_get' at (1) must be explicit".

I think that does not change anything on the validity of the program: It 
should be also valid with private proc1.

However, 4.3 segfaults and - as you already wrote - 4.4 rejects the 
code. If one swaps the order of Init and Proc1, both GCC 4.3 and 4.4 do 
compile the program (with private Proc1 and public Init).

Can you fill a bugreport?

Tobias



More information about the Fortran mailing list