[Bug fortran/49648] ICE(segfault) with MATHMUL and function-result actual argument

2011-07-05 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49648 --- Comment #5 from Tobias Burnus 2011-07-05 22:52:01 UTC --- (In reply to comment #4) > Draft patch, which should also save some memory, .mod file-size and should > slightly speed the program. The patch fails for procedure pointers - as the fun

[Bug fortran/49648] ICE(segfault) with MATHMUL and function-result actual argument

2011-07-05 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49648 --- Comment #4 from Tobias Burnus 2011-07-05 19:46:45 UTC --- Draft patch, which should also save some memory, .mod file-size and should slightly speed the program. It fixes the test case in comment 0 and comment 2, but I have not yet regtested

[Bug fortran/49648] ICE(segfault) with MATHMUL and function-result actual argument

2011-07-05 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49648 --- Comment #3 from Tobias Burnus 2011-07-05 19:00:51 UTC --- Draft patch, which seems to fix some ref->u.ar->as issues for "p" - but not the one, I am looking for. At least the added assert now triggers. * * * Debugging shows that when resolv

[Bug fortran/49648] ICE(segfault) with MATHMUL and function-result actual argument

2011-07-05 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49648 Tobias Burnus changed: What|Removed |Added CC||pault at gcc dot gnu.org Bloc

[Bug fortran/49648] ICE(segfault) with MATHMUL and function-result actual argument

2011-07-05 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49648 --- Comment #1 from Tobias Burnus 2011-07-05 17:14:31 UTC --- At some point, the array spec seems to got lost: COMPLEX,SAVE,ALLOCATABLE::P(:) COMPLEX:: PM(SIZE(P),SIZE(P)) We have: (gdb) p expr->expr_type $1 = EXPR_VARIABLE (gdb) p e