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

Compilation aborted

abhimodak
New Contributor I
403 Views
Test_NameList_withType.f90

The attached file gives "Compilation Aborted (code 3)".

If I removed type-binding and change the polymorphic entity to type (in subroutine ReadFromNameList), it compiles fine.

Notice that I was trying to test the use of user-defined derived type I/O. When using array X as allocatable, the compiler throws error #5415 and indicates that this feature is not implemented. Will this feature be included in the next update?

Abhi
0 Kudos
2 Replies
Steven_L_Intel1
Employee
403 Views
Thanks, I can reproduce the error. I'll let you know what I find.

The "not implemented" error seems odd to me as well.
0 Kudos
Steven_L_Intel1
Employee
403 Views
User-defined derived type I/O is not yet implemented, and will probably be the last F2003 feature we do. It is not yet being worked on.

Both of your test cases require user-defined derived type I/O (a polymorphic variable or one with an "ultimate component" that is allocatable or pointer.)

In the next major release, you'll get a nicer error message for the use of the polymorphic variable in NAMELIST.
0 Kudos
Reply