- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am getting access violations when Icopya type containing an allocatable as well as type-bound procedures and further fields after the allocatable.
The sample code below procudes a segmentation violation when executing the line A1 = A2. This does not happen when the field order in the type definition is changed such that the allocatable element comes last.
The code did not produce any errors in 11.1.035.
regards,
Thomas
The sample code below procudes a segmentation violation when executing the line A1 = A2. This does not happen when the field order in the type definition is changed such that the allocatable element comes last.
The code did not produce any errors in 11.1.035.
regards,
Thomas
[plain]module test TYPE :: A INTEGER, ALLOCATABLE :: IntAlloc REAL(8) :: val = 1.0 CONTAINS PROCEDURE GetVal END TYPE CONTAINS REAL(8) FUNCTION GetVal( this ) class(A), INTENT(IN) :: this GetVal = this%val END FUNCTION end module program Console1 USE test implicit none TYPE (A) :: A1, A2 A1 = A2 end program Console1 [/plain]
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks - I'll look into this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Issue ID is DPD200138087.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This was fixed in 11.1 Update 2.

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