[Bug fortran/43829] Scalarization of reductions

dominiq at lps dot ens dot fr gcc-bugzilla@gcc.gnu.org
Fri Jun 25 22:09:00 GMT 2010



------- Comment #17 from dominiq at lps dot ens dot fr  2010-06-25 22:08 -------
With the patch in comment #13 I get the following failures:


FAIL: gfortran.dg/entry_10.f90  -O0  (internal compiler error)
...
FAIL: gfortran.dg/entry_13.f90  -O0  (internal compiler error)
...
FAIL: gfortran.dg/entry_16.f90  -O0  (internal compiler error)
...

FAIL: gfortran.dg/transpose_2.f90  -O0  output pattern test, is At line 16 of
file /opt/gcc/work/gcc/testsuite/gfortran.dg/transpose_2.f90

The reason for the failures with entry_* is

[macbook] f90/bug% gfc /opt/gcc/_clean/gcc/testsuite/gfortran.dg/entry_10.f90
f951(52154) malloc: *** error for object 0x1419161b0: pointer being freed was
not allocated
*** set a breakpoint in malloc_error_break to debug
f951: internal compiler error: Abort trap

For the transpose test the runtime error is

At line 16 of file /opt/gcc/_clean/gcc/testsuite/gfortran.dg/transpose_2.f90
Fortran runtime error: Array bound mismatch for dimension 1 of array 'b' (3/2)

instead of 

Fortran runtime error: Incorrect extent in return value of TRANSPOSE intrinsic
in dimension 1: is 2, should be 3

I have also a dozen ICEs in my favorite can of worms, for instance with


module grid_module
  implicit none 
  type grid
  end type
  type field
    type(grid) :: mesh
  end type
contains
  real function return_x(this)
    class(grid) :: this
  end function
end module 

module field_module
  use grid_module, only: field,return_x
  implicit none 
contains
  subroutine output(this)
    class(field) :: this
    print *,return_x(this%mesh)
  end subroutine
end module


[macbook] f90/bug% gfc pr42051_3.f90
pr42051_3.f90:21:0: internal compiler error: Segmentation fault
Please submit a full bug report,


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43829



More information about the Gcc-bugs mailing list