https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80305

            Bug ID: 80305
           Summary: print statement inside do-concurrent
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chinoune.mehdi at hotmail dot com
  Target Milestone: ---

Created attachment 41118
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41118&action=edit
the test program

the compiler gives this error:
Program received signal SIGSEGV: Segmentation fault - invalid memory reference.
Backtrace for this error:
#0  0x7f3615d254af in 
#1  0x7f3615d7ab96 in ??? 
#2  0x7f3615d3c97f in ???
#3  0x7f3615d3d4a5 in ???
#4  0x7f3615d66a48 in ???
#5  0x7f36169bb24b in data_transfer_init at
../../../libgfortran/io/transfer.c:2807
#6  0x400736 in ???
#7  0x4007cd in ???
#8  0x7f3615d1082f in ???
#9  0x400668 in ???
#10  0xffffffffffffffff in ???
Segmentation fault (core dumped)

this error appears only with gfortran 7.

build :
Target: x86_64-pc-linux-gnu
Configured with: ../configure --disable-multilib --prefix=/home/mehdi/gcc-7/
--program-suffix=-7 --enable-language=fortran --disable-bootstrap
--with-system-zlib --with-arch=native 
Thread model:posix 
gcc version 7.0.1 20170402 (experimental) (GCC)

cpu :
haswell-i7

Reply via email to