This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Internal compiler error on runtime-selected array size


> --- Ursprüngliche Nachricht ---
> Von: Jonathan Dursi <ljdursi@cita.utoronto.ca>
> An: Paul Thomas <paulthomas2@wanadoo.fr>
> Kopie: Andrew Pinski <pinskia@physics.uc.edu>, Fortran List
> <fortran@gcc.gnu.org>
> Betreff: Re: Internal compiler error on runtime-selected array size
> Datum: Thu, 2 Feb 2006 01:10:57 -0500
> 
> On Thu, Feb 02, 2006 at 07:04:44AM +0100, Paul Thomas wrote:
> > Andrew and Jonathan,
> > 
> > >This works on the mainline of GCC and I assume it also works on
> > >4.1 branch of GCC.
> > 
> > It compiles fine on 4.0, 4.1 and 4.2.
> 
> Ok; it broke on gcc version 4.0.2 20051125.   I've pulled down
> a more recent version and will use that for now on.
> 


Well, your
    integer, dimension(nelements(indx)),  intent(OUT) :: arrayvals
smells like my pet bug 
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18271
i.e.
    INTEGER,INTENT(IN):: IMAX
    REAL:: AUX1(25000+INT(0.82*IMAX))

And indeed, it's gone!
4.2.0 20051203 crashes,  4.2.0 20060101 works
At FX's site there are no linux binaries for last year, so I can not
narrow it further.

I will update my PR with this information.
I will not close the PR, as it is invalid code.

thanks&regards,
Manfred


> 	- Jonathan
> -- 
> Jonathan Dursi
> ljdursi@cita.utoronto.ca
> http://www.cita.utoronto.ca/~ljdursi
> 

-- 
Telefonieren Sie schon oder sparen Sie noch?
NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]