- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, I can reproduce the error. I'll let you know what I find.
The "not implemented" error seems odd to me as well.
The "not implemented" error seems odd to me as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page