ICE on invalid with procedure interface
Andrew Benson
abenson@its.caltech.edu
Fri Oct 7 17:26:00 GMT 2011
On Friday, October 07, 2011, Tobias Burnus wrote:
> 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.
Ok - good to know, that's what I was expecting.
> 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?
Filed as PR 50659:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50659
-Andrew.
--
* Andrew Benson: http://www.tapir.caltech.edu/~abenson/contact.html
* Galacticus: http://sites.google.com/site/galacticusmodel
More information about the Fortran
mailing list