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

13.0 compiler bug/RTE: data entities finalized when they shouldn't be

Neil_Carlson
Beginner
517 Views

The 13.0 compiler is finalizing the result of a function reference which returns a pointer to a finalizable data type.  This is incorrect -- a pointer is not a finalizable data entity (see 1.3.76 and 4.5.6.2 item 1; the target of the pointer is finalizable, but it is only finalized when the pointer is explicitly deallocated.)  I've attached a short example that illustrates the error.  This is a really nasty bug that renders finalization mostly unusable, at least in my use cases.

-Neil

0 Kudos
3 Replies
Anonymous66
Valued Contributor I
517 Views
Thank you for reporting this issue. I have escalated it to the developers. The issue number is DPD200237182. I post any updates I receive to this thread. Regards, Annalee Intel Developer Support
0 Kudos
Anonymous66
Valued Contributor I
517 Views
Hello Neil, A fix has been found for this issue. We are planning to include it in the next update which is currently scheduled for late January. Regards, Annalee
0 Kudos
Anonymous66
Valued Contributor I
517 Views

Hello Neil,

This is issue has been fixed in Intel® Fortran Composer XE for Linux* 2013 Update 3 which is now available at the Intel® Registration Center.

Annalee

0 Kudos
Reply