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

--- Comment #6 from Andrew Wood <andrew at fluidgravity dot co.uk> ---
For info, the actual code I was developing did use the finalization subroutine
to deallocate pointers, which resulted in seg faults when compiled with ifort.
This was how I discovered the problem.

I also reported the problem to PGI. The latest version of pgfortran (17.7) now
produces the same behaviour as ifort:

> pgfortran -V

pgfortran 17.5-0 64-bit target on x86-64 Linux -tp haswell 
PGI Compilers and Tools
Copyright (c) 2017, NVIDIA CORPORATION.  All rights reserved.

> pgfortran prog.f90 && ./a.out 
 In SUBROUTINE t_final




> pgfortran -V

pgfortran 17.7-0 64-bit target on x86-64 Linux -tp haswell 
PGI Compilers and Tools
Copyright (c) 2017, NVIDIA CORPORATION.  All rights reserved.

> pgfortran prog.f90 && ./a.out 
 In SUBROUTINE t_final
 In SUBROUTINE t_final
 In SUBROUTINE t_final

Reply via email to