Checking when reallocation occurs with -Mallocatable=03

Hi Guys,

Is there any way to check when automatic reallocation occurs (e.g., runtime warning) in code compiled with PGI Fortran (18.7) with flag:



I am getting segmentation fault error after migration to latest PGI and problem is gone when the code is compiled with:



Hi M.

Other than traditional debugging tool such as using pgdbg or valgrind to determine where segfault occurs, the compiler does not have additional runtime diagnostics that would help to find when a reallocation occurs.

Though given the code works with -Mallocatable=95 and 03 is new, it’s possible that this is a compiler error. Could you please send a note with a reproducing example to PGI Customer Service ( We’ll have one of our compiler engineers take a look and see what the issue is.