Daniel Chen

Results comments of Daniel Chen

Seems a place that needs to add UNSIGNED type case ``` llvm-project/flang/lib/Semantics/resolve-names.cpp:7597:16: error: enumeration value 'Unsigned' not handled in switch [-Werror,-Wswitch] switch (type.category()) { ~~~~~^~~~~~~~~~ llvm-project/flang/lib/Semantics/resolve-names.cpp:7621:1: error: non-void function does...

There is another variation that could be caused by the same issue. ``` program main real, allocatable :: a1(:) allocate( a1(2:1) ) a1 = real(4, 8) end fatal Fortran runtime...

Another variation ``` real, allocatable :: r1(:) allocate(r1(1:0)) print*, allocated(r1) end ``` flang-new -ffree-form t.f >a.out F Where XLF, ifort and gfortran all produce T

FYI: The latest Flang driver now produces: ``` error: Semantic errors in 55825.f ./55825.f:8:18: error: Procedure binding 'info' with no dummy arguments must have NOPASS attribute procedure :: info =>...

The call `call sub1(t%t3%t2%t1%info)` violates ` C925 (R918) Exactly one part-ref shall have nonzero rank, and either the final part-ref shall have a section-subscript- list with nonzero rank, another part-ref...

I just realized there is another issue with this code that passing a type bound procedure as an actual argument is not allowed. I opened a new issue #59967 to...

This Issue might also be related https://github.com/llvm/llvm-project/issues/153197, where the code is doing explicit initialization to a large array.

Ok. I see. Thanks @klausler @sscalpone for the pointer. There was some discussion on this topic within the Fortran standard committee. The reasoning for disallowing a type-bound procedure being passed...

Thanks for the explanation. Just to clarify, to determine the dynamic type of `t1` in this case, would it be a runtime process as `t1` can have different dynamic type...

Thanks! I see how it works now from the caller side. The next question is how the dummy procedure is used on the callee side? It seems it cannot have...