I compiled this code with ifort 17.0 and it gives segfault.
https://gist.github.com/appleparan/be9eb47be87f5440c8008118492b4f10
It works with gfortran 6.2 but ifort fails. Is this ifort's bug?
This is traceback
#0 0x0000003a06a7a96c in free () from /lib64/libc.so.6
#1 0x0000000000563e7b in for_dealloc_allocatable ()
#2 0x00000000004057ca in MAIN__ ()
#3 0x0000000000403ade in main ()
#4 0x0000003a06a1ecdd in __libc_start_main () from /lib64/libc.so.6
#5 0x0000000000403969 in _start ()
gnu libc version status
ldd (GNU libc) 2.12
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
ifort version status
ifort (IFORT) 17.0.0 20160721
Copyright (C) 1985-2016 Intel Corporation. All rights reserved.
FFTW version 3.3.5 compiled with --enable-avx --enable-openmp
I have this issue with ifort 12.1 as well as 17.0