On Tue, May 02, 2006 at 08:09:28AM -0700, Andrew Pinski wrote: > >I've stumbled onto a problem with the OpenMP REDUCTION clause > > > >gfortran segfault on compile (gfortran -fopenmp array_reduction.f90) > >with the following message: > >arrayreduction.f90: In function 'foo': > >arrayreduction.f90:14: internal compiler error: Segmentation fault > >Please submit a full bug report, > >with preprocessed source if appropriate. > >See <URL:http://gcc.gnu.org/bugs.html> for instructions. > > > >My understanding (from following the mailing list) is that the > >segfault itself is a gfortran bug... > >Should I therefore file one ?
Of course. Make sure to add openmp to Keywords in the bugreport. > >My 2nd question is is the coding valid ??? From reading page 83 of the > >OpenMP 2.5 Specifications > >(http://www.openmp.org/drupal/mp-documents/spec25.pdf) I tend to think > >that sumarray is a valid array for the REDUCTION clause. I wonder > >still since INTEL compilers seem to have a problem with it too. I believe it is valid. Jakub