https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90539

--- Comment #16 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Hi Martin,

Is this for the slowdown or for the wrong-code issue?

To get another view, from a gdb seesion of the compiler:

call debug(expr)
call debug(fsym)

a look at expr->symtree->n.sym (I think call debug(expr->symtree->n.sym)
will also work,

a look at expr->ref (follow a few pointers)

a look at fsym->as (also follow non-zero pointers).

Also, if you have

call foo(...,a, ...)

you can put

print *,shape(a)
print *,size(a)
print *,is_contiguous(a)

into the source, run it and see what you get.

Also, look into the callee if there is a bounds violation - what
is the dummy argumet declared as on the calee's side?

Maybe you could also put

subroutine foo (...., a, ...)

print *,shape(a)
print *,size(a)
print *,is_contiguous(a)

into the source code and paste the output.

Regards

Thomas

Reply via email to