------- Comment #7 from rguenther at suse dot de 2010-03-17 10:07 ------- Subject: Re: Cray pointers generate bogus IL for the middle-end
On Wed, 17 Mar 2010, burnus at gcc dot gnu dot org wrote: > ------- Comment #6 from burnus at gcc dot gnu dot org 2010-03-17 10:03 > ------- > FIXED on the trunk (4.5). > > Richard: Thanks for the clear bug report! And for making the middle-end > smarter > with regards to bonds. > > Actually, will this middle-end change cause problems for inlining such > old-style Fortran code as below? > > real A(100) > call sub(A(1), 100) ! Correct syntax: "call sub(A, 100)" > > subroutine sub(x, n) > integer n > real x(*) ! Or: "real x(n)" to be slightly more modern > x(n) = 5 > > (I think the code was never valid but one can find it quite often in old code > that it passes the first array element to a procedure, which expects an > array.) The middle-end should be able to deal with this (well, worst case by refusing to inline). Richard. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43331