Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29279 Discussions

Automatic deallocation of arrays on leaving a subroutine

ferrad01
Beginner
489 Views
Has the meaning of /QSave changed between 8.1 and 11.1? - with regard to automatic deallocation of allocatable arrays when leaving a subroutine.

It seems it does not deallocate them in 11.1 but it did in 8.1.
0 Kudos
1 Reply
Steven_L_Intel1
Employee
489 Views
I think so, yes. /Qsave marks all local variables SAVE - even allocatable. I have asked for a separate option that would remove allocatables from this.
0 Kudos
Reply