Internal compiler errors with Fortran 2015 EVENT WAIT and EVENT POST

Damian Rouson damian@sourceryinstitute.org
Sat Apr 16 19:09:00 GMT 2016


All,

I just submitted Bug Reports 70696 and 70697 related to internal compiler errors with EVENT POST and EVENT WAIT using a recent build of gfortran 6.0.0.   Excerpts from these bug reports are below.  Also, I just marked coarray Bugs 57093 and 59694 as resolved and fixed based on tests with gfortran 4.9.3, 5.3.0, and 6.0.0. 

Damian

_________ Bug 70696 ______________________

$ cat post_host_associated_event.f90 
  use iso_fortran_env
  type(event_type) :: x[*] 
contains
  subroutine exchange
    event post(x[1])
  end subroutine
end 
$ gfortran -fcoarray=single post_host_associated_event.f90
$ gfortran -fcoarray=lib post_host_associated_event.f90
post_host_associated_event.f90:5:0:

     event post(x[1])
 
internal compiler error: in gfc_get_tree_for_caf_expr, at fortran/trans-expr.c:1852

post_host_associated_event.f90:5:0: internal compiler error: Abort trap: 6
gfortran: internal compiler error: Abort trap: 6 (program f951)
Please submit a full bug report,
with preprocessed source if appropriate.
See <
https://trac.macports.org/newticket
> for instructions.
$ gfortran --version
GNU Fortran (MacPorts gcc6 6-20160327_0) 6.0.0 20160327 (experimental)


_________ Bug 70697 ______________________
$ cat tree.f90 
  use iso_fortran_env
  integer :: nc(1)
  type(event_type) done[*]
  event wait(done,until_count=nc(1))
end
$ gfortran -fcoarray=single tree.f90 
tree.f90:4:0:

   event wait(done,until_count=nc(1))
 
internal compiler error: Segmentation fault: 11

tree.f90:4:0: internal compiler error: Abort trap: 6
gfortran: internal compiler error: Abort trap: 6 (program f951)
Please submit a full bug report,
with preprocessed source if appropriate.
See <
https://trac.macports.org/newticket
> for instructions.
$ gfortran --version
GNU Fortran (MacPorts gcc6 6-20160327_0) 6.0.0 20160327 (experimental)


More information about the Fortran mailing list