[Bug fortran/41850] Wong-code with optional allocatable arrays

2009-10-29 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2009-10-29 23:09 --- Hmm, I get regtest failures for elemental procedures: gfortran.dg/bounds_check_9.f90 gfortran.dg/bounds_check_fail_2.f90 - D.1415 = ivec != 0B ? &(*ivec.0)[(S.10 + 1) * D.1413 + D.1408] : 0B; - set_optional (&iv

[Bug fortran/41850] Wong-code with optional allocatable arrays

2009-10-29 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2009-10-29 22:52 --- Preliminary patch. The for the second part of the patch one needs still to update the comment. (Currently regtesting, so far no failure.) ... Actually, I think the block (second part) can also go away for fsym == N

[Bug fortran/41850] Wong-code with optional allocatable arrays

2009-10-29 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-10-29 21:59 --- Note: One also needs to ensure that this works with allocatable scalars, cf. PR 41872. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41850