- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
MOVE_ALLOC requires that `to` be type compatible with `from`. Could the compiler please diagnose when this requirement is not met.
MODULE m
IMPLICIT NONE
TYPE :: NotMyParent
END TYPE NotMyParent
TYPE :: NotAnExtension
END TYPE NotAnExtension
CONTAINS
SUBROUTINE proc
CLASS(NotMyParent), ALLOCATABLE :: to
TYPE(NotAnExtension), ALLOCATABLE :: from
!****
CALL MOVE_ALLOC(from, to)
END SUBROUTINE proc
END MODULE m
>ifort /c /check:all /warn:all /standard-semantics move-alloc-not-an-extension.f90 Intel(R) Visual Fortran Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 15.0.0.108 Build 201407 26 Copyright (C) 1985-2014 Intel Corporation. All rights reserved. (... hours of fun and games begin here...)
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks - escalated as DPD200361056.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Fixed in a release later this year.
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