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

SIZE used on unallocated array

Andrew_Smith
Valued Contributor I
1,138 Views
I request a new debugging option to trap this. The current behaviour of Intel Fortran is returning 0 and raising no error. This is probably the worst choice since it often hides the problem.
0 Kudos
1 Solution
Steve_Lionel
Honored Contributor III
1,138 Views

In my opinion, it's a bug that /check:pointer doesn't catch this. I will submit this. 02941404

View solution in original post

0 Kudos
3 Replies
Steve_Lionel
Honored Contributor III
1,139 Views

In my opinion, it's a bug that /check:pointer doesn't catch this. I will submit this. 02941404

0 Kudos
Devorah_H_Intel
Moderator
1,138 Views

Steve Lionel (Ret.) wrote:

In my opinion, it's a bug that /check:pointer doesn't catch this. I will submit this. 02941404

Steve,

Thank you for submitting this report via Online Service Center. It was escalated to development for a fix.

0 Kudos
tobias-loew
New Contributor I
678 Views

It seems 8 years later, SIZE still returns 0 for unallocated arrary and does not trap. (IFX 2025.1)

This is a nightmare for writing portable code.

Please fix /check:pointer.

0 Kudos
Reply