Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
26758 Discussions

Intrinsic Assignment of UDTs with Allocatable Components

Watters__Colin
Beginner
71 Views

Attached example executes without error if compiled with IVF 17.0.2.187, but fails when compiled with 18.0.0.124 or 19.0.0.203.

Failure with this exact code is an "access violation". I have been experimenting with this problem on my main code for the last 2 days, and various error modes can occur, depending on presence or absense of SEQUENCE, Padding, and allocatable attribute of AFL. I have tried it with and without /standard-realloc-lhs. Sometimes the assignment completes with no error, but the APRES array is full of garbage. 

From my reading of the 2008 Fortran standard, it appears that the assignment is legal. But I may be wrong.

0 Kudos
2 Replies
Watters__Colin
Beginner
71 Views

Sorry the last version should read 19.0.3.203.

Steve_Lionel
Black Belt Retired Employee
71 Views

See https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/812475 for continued discussion.

Reply