- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using 2025.0, the wrong result is returned by the following example program
type,abstract :: foo
end type
type, extends(foo) :: bar
end type
type(bar), allocatable :: x
class(foo), allocatable :: y
call move_alloc(x, y)
if (allocated(y)) stop 1 ! ERROR: Y SHOULD BE UNALLOCATED
end
Because x is unallocated, the allocation status of y should also be unallocated upon return from the move_alloc, but the program prints the error return status "1".
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Great! Thanks for the update.

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