mirror of
https://github.com/intel/llvm.git
synced 2026-02-06 06:31:50 +08:00
Derived type from the MOLD was not carried over to the newly allocated pointer or allocatable. This may lead to wrong dynamic type when the pointer or allocatable is polymorphic as shown in the example below: ``` type :: p1 integer :: a end type type, extends(p1) :: p2 integer :: b end type class(p1), pointer :: p(:) allocate(p(5), MOLD=p2(1,2)) ``` Reviewed By: klausler Differential Revision: https://reviews.llvm.org/D143525
7.5 KiB
7.5 KiB